Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMWSQLStore3Readers Class Reference

Public Member Functions

 __construct (SMWSQLStore3 $parentStore, $factory)
 
 getSemanticData (DIWikiPage $subject, $filter=false)
 
 getPropertyValues ($subject, SMWDIProperty $property, $requestOptions=null)
 
 getPropertySubjects (SMWDIProperty $property, SMWDataItem $value=null, SMWRequestOptions $requestOptions=null)
 
 getAllPropertySubjects (SMWDIProperty $property, SMWRequestOptions $requestOptions=null)
 
 getProperties (DIWikiPage $subject, SMWRequestOptions $requestOptions=null)
 
 getInProperties (SMWDataItem $value, SMWRequestOptions $requestOptions=null)
 

Detailed Description

Class to provide all basic read methods for SMWSQLStore3.

Author
Markus Krötzsch
Jeroen De Dauw
Nischay Nahata
Since
1.8

Constructor & Destructor Documentation

SMWSQLStore3Readers::__construct ( SMWSQLStore3  $parentStore,
  $factory 
)

Member Function Documentation

SMWSQLStore3Readers::getAllPropertySubjects ( SMWDIProperty  $property,
SMWRequestOptions  $requestOptions = null 
)
See also
SMWStore::getAllPropertySubjects
Parameters
SMWDIProperty$property
SMWRequestOptions$requestOptions
Returns
array of DIWikiPage
SMWSQLStore3Readers::getInProperties ( SMWDataItem  $value,
SMWRequestOptions  $requestOptions = null 
)

Implementation of SMWStore::getInProperties(). This function is meant to be used for finding properties that link to wiki pages.

Since
1.8
See also
SMWStore::getInProperties
Parameters
SMWDataItem$value
SMWRequestOptions | null$requestOptions
Returns
array of SMWWikiPageValue
SMWSQLStore3Readers::getProperties ( DIWikiPage  $subject,
SMWRequestOptions  $requestOptions = null 
)
See also
Store::getProperties
Parameters
DIWikiPage$subject
SMWRequestOptions | null$requestOptions
Returns
SMWDataItem[]
SMWSQLStore3Readers::getPropertySubjects ( SMWDIProperty  $property,
SMWDataItem  $value = null,
SMWRequestOptions  $requestOptions = null 
)
See also
SMWStore::getPropertySubjects
Todo:
This method cannot retrieve subjects for sortkeys, i.e., for property _SKEY. Only empty arrays will be returned there.
Parameters
SMWDIProperty$property
SMWDataItem | null$value
SMWRequestOptions | null$requestOptions
Returns
array of DIWikiPage

TODO: should we share code with #ask query computation here? Just use queries?

SMWSQLStore3Readers::getPropertyValues (   $subject,
SMWDIProperty  $property,
  $requestOptions = null 
)
See also
SMWStore::getPropertyValues
Todo:
Retrieving all sortkeys (values for _SKEY with $subject null) is not supported. An empty array will be given.
Since
1.8
Parameters
$subjectmixed DIWikiPage or null
$propertySMWDIProperty
$requestOptionsSMWRequestOptions
Returns
SMWDataItem[]
SMWSQLStore3Readers::getSemanticData ( DIWikiPage  $subject,
  $filter = false 
)
See also
SMWStore::getSemanticData()
Since
1.8
Parameters
DIWikiPage$subject
string[]|bool$filter

The documentation for this class was generated from the following file: