Inherits SMWDescription.
Public Member Functions | |
| getQueryString ($asvalue=false) | |
| Return a string expressing this query. | |
| isSingleton () | |
| Return true if the description is required to encompass at most a single result, independently of the knowledge base. | |
| getSize () | |
| Compute the size of the decription. | |
| prune (&$maxsize, &$maxdepth, &$log) | |
| Determine the datatype of the values that are described by this object. | |
Corresponds to owl:thing, the class of all abstract objects. Note that it is not used for datavalues of attributes in order to support type hinting in the API: descriptions of data are always SMWValueDescription objects.
Definition at line 162 of file SMW_Description.php.
| SMWThingDescription::getQueryString | ( | $ | asvalue = false |
) |
Return a string expressing this query.
Some descriptions have different syntax in property value positions. The parameter $asvalue specifies whether the serialisation should take that into account.
Example: The SMWValueDescription [[Paris]] returns the single result "Paris" but can also be used as value in [[has location::Paris]] which is preferred over the canonical [[has location::<q>[[Paris]]</q>]].
| boolean | $asvalue |
Reimplemented from SMWDescription.
Definition at line 164 of file SMW_Description.php.
| SMWThingDescription::isSingleton | ( | ) |
Return true if the description is required to encompass at most a single result, independently of the knowledge base.
Reimplemented from SMWDescription.
Definition at line 168 of file SMW_Description.php.
| SMWThingDescription::getSize | ( | ) |
Compute the size of the decription.
Default is 1.
Reimplemented from SMWDescription.
Definition at line 172 of file SMW_Description.php.
| SMWThingDescription::prune | ( | &$ | maxsize, | |
| &$ | maxdepth, | |||
| &$ | log | |||
| ) |
Determine the datatype of the values that are described by this object.
Most descriptins can only describe wiki pages, so this is the default, but some descriptions may refer to other datatypes, and overwrite this function accordingly.
Reimplemented from SMWDescription.
Definition at line 176 of file SMW_Description.php.
1.5.6