Handles document type definitions in XML format.
Each definition must be in a separate file in the directory specified to the constructor. The filename must be the same as the lowercase name of the document type with .xml appended. Each file should return the definition of one document type.
Example exampleclass.xml:
Source for this file: /Search/src/managers/xml_manager.php
Version: | //autogen// |
public ezcSearchXmlManager |
__construct(
$dir
)
Constructs a new XML manager that will look for search document definitions in the directory $dir. |
public ezcSearchDocumentDefinition |
fetchDefinition(
$type
)
Returns the definition of the search document with the type $type. |
Constructs a new XML manager that will look for search document definitions in the directory $dir.
Name | Type | Description |
---|---|---|
$dir |
string |
Returns the definition of the search document with the type $type.
Name | Type | Description |
---|---|---|
$type |
string |
Type | Description |
---|---|
ezcSearchDefinitionInvalidException |
if the definition does not have an "idProperty" attribute. |
ezcSearchDefinitionNotFoundException |
if no such definition can be found. |
Method | Description |
---|---|
ezcSearchDefinitionManager::fetchDefinition() |
Returns the definition of the document type $type. |