BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
SMWQueryParser Class Reference

Public Member Functions

 __construct ($queryFeatures=false)
 
 setContextPage (DIWikiPage $contextPage=null)
 
 setDefaultNamespaces ($namespaceArray)
 
 getQueryDescription ($queryString)
 
 getErrors ()
 
 getErrorString ()
 

Detailed Description

Objects of this class are in charge of parsing a query string in order to create an SMWDescription. The class and methods are not static in order to more cleanly store the intermediate state and progress of the parser.

Author
Markus Krötzsch

Member Function Documentation

SMWQueryParser::getErrors ( )

Return array of error messages (possibly empty).

Returns
array
SMWQueryParser::getErrorString ( )

Return error message or empty string if no error occurred.

Returns
string
SMWQueryParser::getQueryDescription (   $queryString)

Compute an SMWDescription from a query string. Returns whatever descriptions could be wrestled from the given string (the most general result being SMWThingDescription if no meaningful condition was extracted).

Parameters
string$queryString
Returns
Description
SMWQueryParser::setContextPage ( DIWikiPage  $contextPage = null)
Since
2.4
Parameters
DIWikiPage | null$contextPage
SMWQueryParser::setDefaultNamespaces (   $namespaceArray)

Provide an array of namespace constants that are used as default restrictions. If NULL is given, no such default restrictions will be added (faster).


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