|
eZ Publish
[trunk]
|
A content datatype which handles keyword indexes. More...
Inheritance diagram for eZKeywordType:
Collaboration diagram for eZKeywordType:Public Member Functions | |
| deleteStoredObjectAttribute ($contentObjectAttribute, $version=null) | |
| eZKeywordType () | |
| fetchClassAttributeHTTPInput ($http, $base, $attribute) | |
| fetchObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
| fixupClassAttributeHTTPInput ($http, $base, $attribute) | |
| fromString ($contentObjectAttribute, $string) | |
| hasObjectAttributeContent ($contentObjectAttribute) | |
| initializeObjectAttribute ($contentObjectAttribute, $currentVersion, $originalContentObjectAttribute) | |
| isIndexable () | |
| metaData ($attribute) | |
| objectAttributeContent ($attribute) | |
| serializeContentObjectAttribute ($package, $objectAttribute) | |
| storeClassAttribute ($attribute, $version) | |
| storeDefinedClassAttribute ($attribute) | |
| storeObjectAttribute ($attribute) | |
| supportsBatchInitializeObjectAttribute () | |
| title ($attribute, $name=null) | |
| toString ($contentObjectAttribute) | |
| Returns string representation of an contentobjectattribute data for simplified export. | |
| unserializeContentObjectAttribute ($package, $objectAttribute, $attributeNode) | |
| validateClassAttributeHTTPInput ($http, $base, $attribute) | |
| validateObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
Public Attributes | |
| const | DATA_TYPE_STRING = 'ezkeyword' |
A content datatype which handles keyword indexes.
Definition at line 20 of file ezkeywordtype.php.
| eZKeywordType::deleteStoredObjectAttribute | ( | $ | contentObjectAttribute, |
| $ | version = null |
||
| ) |
Delete stored object attribute
Reimplemented from eZDataType.
Definition at line 164 of file ezkeywordtype.php.
Initializes with a keyword id and a description.
Definition at line 27 of file ezkeywordtype.php.
| eZKeywordType::fetchClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Fetches the HTTP input for the content class attribute.
Reimplemented from eZDataType.
Definition at line 133 of file ezkeywordtype.php.
| eZKeywordType::fetchObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Fetches the http post var keyword input and stores it in the data instance.
Reimplemented from eZDataType.
Definition at line 89 of file ezkeywordtype.php.
| eZKeywordType::fixupClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Tries to do a fixup on the input text so that it's acceptable as class attribute input.
Reimplemented from eZDataType.
Definition at line 129 of file ezkeywordtype.php.
| eZKeywordType::fromString | ( | $ | contentObjectAttribute, |
| $ | string | ||
| ) |
Reimplemented from eZDataType.
Definition at line 252 of file ezkeywordtype.php.
| eZKeywordType::hasObjectAttributeContent | ( | $ | contentObjectAttribute | ) |
true if the datatype finds any content in the attribute $contentObjectAttribute. Reimplemented from eZDataType.
Definition at line 224 of file ezkeywordtype.php.
| eZKeywordType::initializeObjectAttribute | ( | $ | contentObjectAttribute, |
| $ | currentVersion, | ||
| $ | originalContentObjectAttribute | ||
| ) |
Sets the default value.
Reimplemented from eZDataType.
Definition at line 36 of file ezkeywordtype.php.
Reimplemented from eZDataType.
Definition at line 233 of file ezkeywordtype.php.
| eZKeywordType::metaData | ( | $ | attribute | ) |
Returns the meta data used for storing search indeces.
Reimplemented from eZDataType.
Definition at line 152 of file ezkeywordtype.php.
| eZKeywordType::objectAttributeContent | ( | $ | attribute | ) |
Returns the content.
Reimplemented from eZDataType.
Definition at line 141 of file ezkeywordtype.php.
| eZKeywordType::serializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute | ||
| ) |
| package | |
| objectAttribute | content attribute |
Reimplemented from eZDataType.
Definition at line 260 of file ezkeywordtype.php.
| eZKeywordType::storeClassAttribute | ( | $ | classAttribute, |
| $ | version | ||
| ) |
Stores the datatype data to the database which is related to the class attribute. The $version parameter determines which version is currently being stored, 0 is the real version while 1 is the temporary version.
Reimplemented from eZDataType.
Definition at line 116 of file ezkeywordtype.php.
| eZKeywordType::storeDefinedClassAttribute | ( | $ | classAttribute | ) |
| eZContentClassAttribute | $classAttribute | Content class attribute of the datatype |
Reimplemented from eZDataType.
Definition at line 120 of file ezkeywordtype.php.
| eZKeywordType::storeObjectAttribute | ( | $ | attribute | ) |
Does nothing since it uses the data_text field in the content object attribute. See fetchObjectAttributeHTTPInput for the actual storing.
Reimplemented from eZDataType.
Definition at line 106 of file ezkeywordtype.php.
Reimplemented from eZDataType.
Definition at line 283 of file ezkeywordtype.php.
| eZKeywordType::title | ( | $ | attribute, |
| $ | name = null |
||
| ) |
Returns the content of the keyword for use as a title
Reimplemented from eZDataType.
Definition at line 215 of file ezkeywordtype.php.
| eZKeywordType::toString | ( | $ | contentObjectAttribute | ) |
Returns string representation of an contentobjectattribute data for simplified export.
| eZContentObjectAttribute | $contentObjectAttribute |
Reimplemented from eZDataType.
Definition at line 245 of file ezkeywordtype.php.
| eZKeywordType::unserializeContentObjectAttribute | ( | $ | package, |
| $ | objectAttribute, | ||
| $ | attributeNode | ||
| ) |
Unserialize contentobject attribute
| package | |
| objectAttribute | contentobject attribute object |
| attributeNode | ezdomnode object |
Reimplemented from eZDataType.
Definition at line 275 of file ezkeywordtype.php.
| eZKeywordType::validateClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Validates the input for a class attribute and returns a validation state as defined in eZInputValidator.
Reimplemented from eZDataType.
Definition at line 124 of file ezkeywordtype.php.
| eZKeywordType::validateObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Validates the input and returns true if the input was valid for this datatype.
Reimplemented from eZDataType.
Definition at line 60 of file ezkeywordtype.php.
| const eZKeywordType::DATA_TYPE_STRING = 'ezkeyword' |
Definition at line 22 of file ezkeywordtype.php.