Search document factory.
More...
|
static | clean_static () |
| Clears static vars.
|
|
static | instance ($itemid, $componentname, $areaname, $engine=false) |
| Returns the appropiate document object as it depends on the engine.
|
|
|
static array | $docclassnames = array() |
| The document class used by search engines.
|
|
Search document factory.
- Copyright
- 2015 David Monllao
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ clean_static()
static core_search\document_factory::clean_static |
( |
| ) |
|
|
static |
Clears static vars.
- Return values
-
◆ instance()
static core_search\document_factory::instance |
( |
| $itemid, |
|
|
| $componentname, |
|
|
| $areaname, |
|
|
| $engine = false ) |
|
static |
Returns the appropiate document object as it depends on the engine.
- Parameters
-
int | $itemid | Document itemid |
string | $componentname | Document component name |
string | $areaname | Document area name |
core_search\engine | $engine | Falls back to the search engine in use. |
- Return values
-
◆ $docclassnames
array core_search\document_factory::$docclassnames = array() |
|
staticprotected |
The document class used by search engines.
Defined as an array to prevent unexpected caching issues, it should only contain one search engine as only one search engine will be used during a request. This might change during testing, remember to use document_factory\clean_statics in that case.
The documentation for this class was generated from the following file:
- search/classes/document_factory.php