|
eZ Publish
[trunk]
|
A content datatype which handles text lines. More...
Inheritance diagram for eZStringType:
Collaboration diagram for eZStringType:Public Member Functions | |
| batchInitializeObjectAttributeData ($classAttribute) | |
| diff ($old, $new, $options=false) | |
| eZStringType () | |
| fetchClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| fetchCollectionAttributeHTTPInput ($collection, $collectionAttribute, $http, $base, $contentObjectAttribute) | |
| fetchObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
| fixupClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| fromString ($contentObjectAttribute, $string) | |
| hasObjectAttributeContent ($contentObjectAttribute) | |
| initializeObjectAttribute ($contentObjectAttribute, $currentVersion, $originalContentObjectAttribute) | |
| insertSimpleString ($object, $objectVersion, $objectLanguage, $objectAttribute, $string, &$result) | |
| isIndexable () | |
| isInformationCollector () | |
| isSimpleStringInsertionSupported () | |
| metaData ($contentObjectAttribute) | |
| objectAttributeContent ($contentObjectAttribute) | |
| serializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode) | |
| sortKey ($contentObjectAttribute) | |
| sortKeyType () | |
| storeClassAttribute ($attribute, $version) | |
| storeDefinedClassAttribute ($attribute) | |
| storeObjectAttribute ($attribute) | |
| supportsBatchInitializeObjectAttribute () | |
| title ($contentObjectAttribute, $name=null) | |
| toString ($contentObjectAttribute) | |
| unserializeContentClassAttribute ($classAttribute, $attributeNode, $attributeParametersNode) | |
| validateClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| validateCollectionAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
| validateObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
| validateStringHTTPInput ($data, $contentObjectAttribute, $classAttribute) | |
Public Attributes | |
| $MaxLenValidator | |
| The max len validator. | |
| const | DATA_TYPE_STRING = 'ezstring' |
| const | DEFAULT_STRING_FIELD = "data_text1" |
| const | DEFAULT_STRING_VARIABLE = "_ezstring_default_value_" |
| const | MAX_LEN_FIELD = 'data_int1' |
| const | MAX_LEN_VARIABLE = '_ezstring_max_string_length_' |
A content datatype which handles text lines.
It provides the functionality to work as a text line and handles class definition input, object definition input and object viewing.
It uses the spare field data_text in a content object attribute for storing the attribute data.
Definition at line 26 of file ezstringtype.php.
| eZStringType::batchInitializeObjectAttributeData | ( | $ | classAttribute | ) |
Reimplemented from eZDataType.
Definition at line 366 of file ezstringtype.php.
| eZStringType::diff | ( | $ | old, |
| $ | new, | ||
| $ | options = false |
||
| ) |
Method used by content diff system to retrieve changes in attributes. This method implements the default behaviour, which is to show old and new version values of the object.
Reimplemented from eZDataType.
Definition at line 352 of file ezstringtype.php.
Initializes with a string id and a description.
Definition at line 37 of file ezstringtype.php.
| eZStringType::fetchClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Fetches the HTTP input for the content class attribute.
Reimplemented from eZDataType.
Definition at line 246 of file ezstringtype.php.
| eZStringType::fetchCollectionAttributeHTTPInput | ( | $ | collection, |
| $ | collectionAttribute, | ||
| $ | http, | ||
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Fetches the http post variables for collected information
Reimplemented from eZDataType.
Definition at line 163 of file ezstringtype.php.
| eZStringType::fetchObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Fetches the http post var string input and stores it in the data instance.
Reimplemented from eZDataType.
Definition at line 149 of file ezstringtype.php.
| eZStringType::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 234 of file ezstringtype.php.
| eZStringType::fromString | ( | $ | contentObjectAttribute, |
| $ | string | ||
| ) |
Reimplemented from eZDataType.
Definition at line 288 of file ezstringtype.php.
| eZStringType::hasObjectAttributeContent | ( | $ | contentObjectAttribute | ) |
true if the datatype finds any content in the attribute $contentObjectAttribute. Reimplemented from eZDataType.
Definition at line 302 of file ezstringtype.php.
| eZStringType::initializeObjectAttribute | ( | $ | contentObjectAttribute, |
| $ | currentVersion, | ||
| $ | originalContentObjectAttribute | ||
| ) |
Sets the default value.
Reimplemented from eZDataType.
Definition at line 48 of file ezstringtype.php.
| eZStringType::insertSimpleString | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute, | ||
| $ | string, | ||
| &$ | result | ||
| ) |
Inserts the string $string in the 'data_text' database field.
Reimplemented from eZDataType.
Definition at line 193 of file ezstringtype.php.
Reimplemented from eZDataType.
Definition at line 307 of file ezstringtype.php.
Reimplemented from eZDataType.
Definition at line 312 of file ezstringtype.php.
Simple string insertion is supported.
Reimplemented from eZDataType.
Definition at line 185 of file ezstringtype.php.
| eZStringType::metaData | ( | $ | contentObjectAttribute | ) |
Returns the meta data used for storing search indeces.
Reimplemented from eZDataType.
Definition at line 275 of file ezstringtype.php.
| eZStringType::objectAttributeContent | ( | $ | contentObjectAttribute | ) |
Returns the content.
Reimplemented from eZDataType.
Definition at line 267 of file ezstringtype.php.
| eZStringType::serializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Adds the necessary dom structure to the attribute parameters.
Reimplemented from eZDataType.
Definition at line 328 of file ezstringtype.php.
| eZStringType::sortKey | ( | $ | objectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 317 of file ezstringtype.php.
Reimplemented from eZDataType.
Definition at line 323 of file ezstringtype.php.
| eZStringType::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 204 of file ezstringtype.php.
| eZStringType::storeDefinedClassAttribute | ( | $ | classAttribute | ) |
| eZContentClassAttribute | $classAttribute | Content class attribute of the datatype |
Reimplemented from eZDataType.
Definition at line 208 of file ezstringtype.php.
| eZStringType::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 178 of file ezstringtype.php.
Reimplemented from eZDataType.
Definition at line 361 of file ezstringtype.php.
| eZStringType::title | ( | $ | contentObjectAttribute, |
| $ | name = null |
||
| ) |
Returns the content of the string for use as a title
Reimplemented from eZDataType.
Definition at line 297 of file ezstringtype.php.
| eZStringType::toString | ( | $ | contentObjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 283 of file ezstringtype.php.
| eZStringType::unserializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Extracts values from the attribute parameters and sets it in the class attribute.
Reimplemented from eZDataType.
Definition at line 344 of file ezstringtype.php.
| eZStringType::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 212 of file ezstringtype.php.
| eZStringType::validateCollectionAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | objectAttribute | ||
| ) |
Validates the input for an object attribute and returns a validation state as defined in eZInputValidator.
Reimplemented from eZDataType.
Definition at line 119 of file ezstringtype.php.
| eZStringType::validateObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | objectAttribute | ||
| ) |
Validates the input for an object attribute and returns a validation state as defined in eZInputValidator.
Reimplemented from eZDataType.
Definition at line 88 of file ezstringtype.php.
| eZStringType::validateStringHTTPInput | ( | $ | data, |
| $ | contentObjectAttribute, | ||
| $ | classAttribute | ||
| ) |
Definition at line 72 of file ezstringtype.php.
Referenced by validateCollectionAttributeHTTPInput(), and validateObjectAttributeHTTPInput().
| eZStringType::$MaxLenValidator |
The max len validator.
Definition at line 383 of file ezstringtype.php.
| const eZStringType::DATA_TYPE_STRING = 'ezstring' |
Definition at line 28 of file ezstringtype.php.
| const eZStringType::DEFAULT_STRING_FIELD = "data_text1" |
Definition at line 31 of file ezstringtype.php.
| const eZStringType::DEFAULT_STRING_VARIABLE = "_ezstring_default_value_" |
Definition at line 32 of file ezstringtype.php.
| const eZStringType::MAX_LEN_FIELD = 'data_int1' |
Definition at line 29 of file ezstringtype.php.
| const eZStringType::MAX_LEN_VARIABLE = '_ezstring_max_string_length_' |
Definition at line 30 of file ezstringtype.php.