Semantic MediaWiki and related extensions
|
Public Member Functions | |
getSemanticData (DIWikiPage $subject, $filter=false) | |
getProperties (DIWikiPage $subject, RequestOptions $requestOptions=null) | |
getPropertyValues (DIWikiPage $subject=null, DIProperty $property, RequestOptions $requestOptions=null) | |
getPropertySubjects (DIProperty $property, DataItem $dataItem=null, RequestOptions $requestOptions=null) | |
getAllPropertySubjects (DIProperty $property, RequestOptions $requestOptions=null) | |
getInProperties (DataItem $object, RequestOptions $requestOptions=null) | |
GNU GPL v2+
SMW\EntityLookup::getAllPropertySubjects | ( | DIProperty | $property, |
RequestOptions | $requestOptions = null |
||
) |
Get an array of all subjects that have some value for the given property. The result is an array of DIWikiPage objects.
DIProperty | $property | |
RequestOptions | null | $requestOptions |
Implemented in SMW\SQLStore\EntityStore\EntityLookup.
SMW\EntityLookup::getInProperties | ( | DataItem | $object, |
RequestOptions | $requestOptions = null |
||
) |
Get an array of all properties for which there is some subject that relates to the given value. The result is an array of DIWikiPage objects.
DataItem | $object | |
RequestOptions | null | $requestOptions |
Implemented in SMW\SQLStore\EntityStore\EntityLookup.
SMW\EntityLookup::getProperties | ( | DIWikiPage | $subject, |
RequestOptions | $requestOptions = null |
||
) |
Get an array of all properties for which the given subject has some value. The result is an array of DIProperty objects.
DIWikiPage | $subject | |
RequestOptions | null | $requestOptions |
Implemented in SMW\SQLStore\EntityStore\EntityLookup.
SMW\EntityLookup::getPropertySubjects | ( | DIProperty | $property, |
DataItem | $dataItem = null , |
||
RequestOptions | $requestOptions = null |
||
) |
Get an array of all subjects that have the given value for the given property. The result is an array of DIWikiPage objects. If null is given as a value, all subjects having that property are returned.
DIWikiPage | null | $subject | |
DIProperty | $property | |
RequestOptions | null | $requestOptions |
Implemented in SMW\SQLStore\EntityStore\EntityLookup.
SMW\EntityLookup::getPropertyValues | ( | DIWikiPage | $subject = null , |
DIProperty | $property, | ||
RequestOptions | $requestOptions = null |
||
) |
Get an array of all property values stored for the given subject and property. The result is an array of DataItem objects.
If called with $subject == null, all values for the given property are returned.
DIWikiPage | null | $subject | |
DIProperty | $property | |
RequestOptions | null | $requestOptions |
Implemented in SMW\SQLStore\EntityStore\EntityLookup.
SMW\EntityLookup::getSemanticData | ( | DIWikiPage | $subject, |
$filter = false |
|||
) |
Retrieve all data stored about the given subject and return it as a SemanticData container. There are no options: it just returns all available data as shown in the page's Factbox. $filter is an array of strings that are datatype IDs. If given, the function will avoid any work that is not necessary if only properties of these types are of interest.
DIWikiPage | $subject | |
RequestOptions|string[]|bool | $filter |
Implemented in SMW\SQLStore\EntityStore\EntityLookup.