Inherits SMWDescription.
Public Member Functions | |
| __construct ($content) | |
| Constructor. | |
| addDescription (SMWClassDescription $description) | |
| getCategories () | |
| 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. | |
| getQueryFeatures () | |
| Report on query features used in description. | |
| prune (&$maxsize, &$maxdepth, &$log) | |
| Determine the datatype of the values that are described by this object. | |
Protected Attributes | |
| $m_diWikiPages | |
Corresponds to (disjunctions of) atomic classes in OWL and to (unions of) classes in RDF.
Definition at line 198 of file SMW_Description.php.
| SMWClassDescription::__construct | ( | $ | content | ) |
Constructor.
| mixed | $content SMWDIWikiPage or array of SMWDIWikiPage |
| Exception |
Definition at line 212 of file SMW_Description.php.
| SMWClassDescription::addDescription | ( | SMWClassDescription $ | description | ) |
| SMWClassDescription | $description |
Definition at line 225 of file SMW_Description.php.
References getCategories().
| SMWClassDescription::getCategories | ( | ) |
Definition at line 232 of file SMW_Description.php.
Referenced by addDescription().
| SMWClassDescription::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 236 of file SMW_Description.php.
References SMWDataValueFactory::newDataItemValue().
Referenced by prune().
| SMWClassDescription::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 257 of file SMW_Description.php.
| SMWClassDescription::getSize | ( | ) |
Compute the size of the decription.
Default is 1.
Reimplemented from SMWDescription.
Definition at line 261 of file SMW_Description.php.
References $smwgQSubcategoryDepth.
Referenced by prune().
| SMWClassDescription::getQueryFeatures | ( | ) |
Report on query features used in description.
Return values are (sums of) query feature constants such as SMW_PROPERTY_QUERY.
Reimplemented from SMWDescription.
Definition at line 270 of file SMW_Description.php.
| SMWClassDescription::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 278 of file SMW_Description.php.
References SMWDescription::getPrintRequests(), getQueryString(), and getSize().
SMWClassDescription::$m_diWikiPages [protected] |
Definition at line 203 of file SMW_Description.php.
1.5.6