Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct ($DIType, $tableName, $fixedProperty=false) | |
getFields (SQLStore $store) | |
usesIdSubject () | |
setUsesIdSubject ($usesIdSubject) | |
getFixedProperty () | |
isFixedPropertyTable () | |
getName () | |
getDiType () | |
Protected Attributes | |
$name | |
$diType | |
$fixedProperty | |
$idSubject = true | |
Simple data container for storing information about property tables. A property table is a DB table that is used to store subject-property-value records about data in SMW. Tables mostly differ in the composition of the value, but also in whether the property is explicitly named (or fixed), and in the way subject pages are referred to.
GNU GPL v2+
SMW\SQLStore\PropertyTableDefinition::__construct | ( | $DIType, | |
$tableName, | |||
$fixedProperty = false |
|||
) |
Factory method to create an instance for a given DI type and the given table name.
integer | $DIType | constant |
string | $tableName | logocal table name (not the DB version) |
string | false | $fixedProperty | property key if any |
SMW\SQLStore\PropertyTableDefinition::getDiType | ( | ) |
SMW\SQLStore\PropertyTableDefinition::getFields | ( | SQLStore | $store | ) |
SMW\SQLStore\PropertyTableDefinition::getFixedProperty | ( | ) |
Returns the name of the fixed property which this table is for. Throws an exception when called on a table not for any fixed property, so call
OutOfBoundsException |
SMW\SQLStore\PropertyTableDefinition::getName | ( | ) |
Returns the name of the table in the database.
SMW\SQLStore\PropertyTableDefinition::isFixedPropertyTable | ( | ) |
Returns if the table holds a fixed property or is a general table.
SMW\SQLStore\PropertyTableDefinition::setUsesIdSubject | ( | $usesIdSubject | ) |
SMW\SQLStore\PropertyTableDefinition::usesIdSubject | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |