Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\SQLStore\PropertyTableInfoFetcher Class Reference

Public Member Functions

 __construct (PropertyTypeFinder $propertyTypeFinder)
 
 setCustomFixedPropertyList (array $customFixedProperties)
 
 setCustomSpecialPropertyList (array $customSpecialProperties)
 
 findTableIdForDataTypeTypeId ($dataTypeTypeId)
 
 findTableIdForDataItemTypeId ($dataItemId)
 
 isFixedTableProperty (DIProperty $property)
 
 findTableIdForProperty (DIProperty $property)
 
 getPropertyTableDefinitions ()
 
 clearCache ()
 

Detailed Description

GNU GPL v2+

Since
2.2
Author
mwjames

Constructor & Destructor Documentation

SMW\SQLStore\PropertyTableInfoFetcher::__construct ( PropertyTypeFinder  $propertyTypeFinder)
Since
2.5
Parameters
PropertyTypeFinder$propertyTypeFinder

Member Function Documentation

SMW\SQLStore\PropertyTableInfoFetcher::clearCache ( )
Since
2.2
SMW\SQLStore\PropertyTableInfoFetcher::findTableIdForDataItemTypeId (   $dataItemId)

Find the id of a property table that is normally used to store data items of the given type. The empty string is returned if no such table exists.

Since
2.2
Parameters
integer$dataItemId
Returns
string
SMW\SQLStore\PropertyTableInfoFetcher::findTableIdForDataTypeTypeId (   $dataTypeTypeId)

Find the id of a property table that is suitable for storing values of the given type. The type is specified by an SMW type id such as '_wpg'. An empty string is returned if no matching table could be found.

Since
2.2
Parameters
string$dataTypeTypeId
Returns
string
SMW\SQLStore\PropertyTableInfoFetcher::findTableIdForProperty ( DIProperty  $property)

Retrieve the id of the property table that is to be used for storing values for the given property object.

Since
2.2
Parameters
DIProperty$property
Returns
string
SMW\SQLStore\PropertyTableInfoFetcher::getPropertyTableDefinitions ( )

Return the array of predefined property table declarations, initialising it if necessary. The result is an array of SMWSQLStore3Table objects indexed by table ids.

It is ensured that the keys of the returned array agree with the name of the table that they refer to.

Since
2.2
Returns
TableDefinition[]
SMW\SQLStore\PropertyTableInfoFetcher::isFixedTableProperty ( DIProperty  $property)
Since
2.5
Parameters
DIProperty$property
Returns
boolean
SMW\SQLStore\PropertyTableInfoFetcher::setCustomFixedPropertyList ( array  $customFixedProperties)
Since
2.2
Parameters
array$customFixedProperties
SMW\SQLStore\PropertyTableInfoFetcher::setCustomSpecialPropertyList ( array  $customSpecialProperties)
Since
2.2
Parameters
array$customSpecialProperties

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