Inherits SMWConjunction.
Public Member Functions | |
| getQueryString ($asvalue=false) | |
| Return a string expressing this query. | |
| prune (&$maxsize, &$maxdepth, &$log) | |
| Determine the datatype of the values that are described by this object. | |
This class mostly works like a normal conjunction but it gets properties that encode the positions in the record, and which cannot be serialised like normal property conditions.
Definition at line 19 of file SMW_Record_Descriptions.php.
| SMWRecordDescription::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 SMWConjunction.
Definition at line 21 of file SMW_Record_Descriptions.php.
Referenced by prune().
| SMWRecordDescription::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 SMWConjunction.
Definition at line 46 of file SMW_Record_Descriptions.php.
References SMWConjunction::getDescriptions(), SMWDescription::getPrintRequests(), and getQueryString().
1.5.6