Semantic MediaWiki and related extensions
Public Member Functions | Static 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)
 
 getDefaultDataItemTables ()
 
 isFixedTableProperty (DIProperty $property)
 
 findTableIdForProperty (DIProperty $property)
 
 getPropertyTableDefinitions ()
 
 clearCache ()
 

Static Public Member Functions

static findTableIdForDataItemTypeId ( $dataItemId)
 

Detailed Description

GNU GPL v2+

Since
2.2
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ clearCache()

SMW\SQLStore\PropertyTableInfoFetcher::clearCache ( )
Since
2.2

◆ findTableIdForDataItemTypeId()

static SMW\SQLStore\PropertyTableInfoFetcher::findTableIdForDataItemTypeId (   $dataItemId)
static

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

◆ findTableIdForDataTypeTypeId()

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

◆ findTableIdForProperty()

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

◆ getDefaultDataItemTables()

SMW\SQLStore\PropertyTableInfoFetcher::getDefaultDataItemTables ( )
Since
3.0
Returns
array

◆ getPropertyTableDefinitions()

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[]

◆ isFixedTableProperty()

SMW\SQLStore\PropertyTableInfoFetcher::isFixedTableProperty ( DIProperty  $property)
Since
2.5
Parameters
DIProperty$property
Returns
boolean

◆ setCustomFixedPropertyList()

SMW\SQLStore\PropertyTableInfoFetcher::setCustomFixedPropertyList ( array  $customFixedProperties)
Since
2.2
Parameters
array$customFixedProperties

◆ setCustomSpecialPropertyList()

SMW\SQLStore\PropertyTableInfoFetcher::setCustomSpecialPropertyList ( array  $customSpecialProperties)
Since
2.2
Parameters
array$customSpecialProperties

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

About | General disclaimer | Privacy policy