|
eZ Publish
[4.2]
|
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 46 of file ezstringtype.php.
| eZStringType::batchInitializeObjectAttributeData | ( | $ | classAttribute | ) |
Reimplemented from eZDataType.
Definition at line 386 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 372 of file ezstringtype.php.
| eZStringType::eZStringType | ( | ) |
Initializes with a string id and a description.
Definition at line 57 of file ezstringtype.php.
| eZStringType::fetchClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Fetches the HTTP input for the content class attribute.
Reimplemented from eZDataType.
Definition at line 266 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 183 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 169 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 254 of file ezstringtype.php.
| eZStringType::fromString | ( | $ | contentObjectAttribute, |
| $ | string | ||
| ) |
Reimplemented from eZDataType.
Definition at line 308 of file ezstringtype.php.
| eZStringType::hasObjectAttributeContent | ( | $ | contentObjectAttribute | ) |
true if the datatype finds any content in the attribute $contentObjectAttribute. Reimplemented from eZDataType.
Definition at line 322 of file ezstringtype.php.
| eZStringType::initializeObjectAttribute | ( | $ | contentObjectAttribute, |
| $ | currentVersion, | ||
| $ | originalContentObjectAttribute | ||
| ) |
Sets the default value.
Reimplemented from eZDataType.
Definition at line 68 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 213 of file ezstringtype.php.
| eZStringType::isIndexable | ( | ) |
Reimplemented from eZDataType.
Definition at line 327 of file ezstringtype.php.
| eZStringType::isInformationCollector | ( | ) |
Reimplemented from eZDataType.
Definition at line 332 of file ezstringtype.php.
| eZStringType::isSimpleStringInsertionSupported | ( | ) |
Simple string insertion is supported.
Reimplemented from eZDataType.
Definition at line 205 of file ezstringtype.php.
| eZStringType::metaData | ( | $ | contentObjectAttribute | ) |
Returns the meta data used for storing search indeces.
Reimplemented from eZDataType.
Definition at line 295 of file ezstringtype.php.
| eZStringType::objectAttributeContent | ( | $ | contentObjectAttribute | ) |
Returns the content.
Reimplemented from eZDataType.
Definition at line 287 of file ezstringtype.php.
| eZStringType::serializeContentClassAttribute | ( | $ | classAttribute, |
| $ | attributeNode, | ||
| $ | attributeParametersNode | ||
| ) |
Adds the necessary dom structure to the attribute parameters.
Reimplemented from eZDataType.
Definition at line 348 of file ezstringtype.php.
| eZStringType::sortKey | ( | $ | objectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 337 of file ezstringtype.php.
| eZStringType::sortKeyType | ( | ) |
Reimplemented from eZDataType.
Definition at line 343 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 224 of file ezstringtype.php.
| eZStringType::storeDefinedClassAttribute | ( | $ | classAttribute | ) |
Reimplemented from eZDataType.
Definition at line 228 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 198 of file ezstringtype.php.
| eZStringType::supportsBatchInitializeObjectAttribute | ( | ) |
Reimplemented from eZDataType.
Definition at line 381 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 317 of file ezstringtype.php.
| eZStringType::toString | ( | $ | contentObjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 303 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 364 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 232 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 139 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 108 of file ezstringtype.php.
| eZStringType::validateStringHTTPInput | ( | $ | data, |
| $ | contentObjectAttribute, | ||
| $ | classAttribute | ||
| ) |
Definition at line 92 of file ezstringtype.php.
Referenced by validateCollectionAttributeHTTPInput(), and validateObjectAttributeHTTPInput().
| eZStringType::$MaxLenValidator |
The max len validator.
Definition at line 403 of file ezstringtype.php.
| const eZStringType::DATA_TYPE_STRING = 'ezstring' |
Definition at line 48 of file ezstringtype.php.
| const eZStringType::DEFAULT_STRING_FIELD = "data_text1" |
Definition at line 51 of file ezstringtype.php.
| const eZStringType::DEFAULT_STRING_VARIABLE = "_ezstring_default_value_" |
Definition at line 52 of file ezstringtype.php.
| const eZStringType::MAX_LEN_FIELD = 'data_int1' |
Definition at line 49 of file ezstringtype.php.
| const eZStringType::MAX_LEN_VARIABLE = '_ezstring_max_string_length_' |
Definition at line 50 of file ezstringtype.php.