|
eZ Publish
[trunk]
|
A content datatype that contains country. More...
Inheritance diagram for eZCountryType:
Collaboration diagram for eZCountryType:Public Member Functions | |
| classAttributeContent ($classAttribute) | |
| diff ($old, $new, $options=false) | |
| eZCountryType () | |
| fetchClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| fetchCollectionAttributeHTTPInput ($collection, $collectionAttribute, $http, $base, $contentObjectAttribute) | |
| fetchObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
| fromString ($contentObjectAttribute, $string) | |
| hasObjectAttributeContent ($contentObjectAttribute) | |
| initializeObjectAttribute ($contentObjectAttribute, $currentVersion, $originalContentObjectAttribute) | |
| insertSimpleString ($object, $objectVersion, $objectLanguage, $objectAttribute, $string, &$result) | |
| isIndexable () | |
| isInformationCollector () | |
| isSimpleStringInsertionSupported () | |
| metaData ($contentObjectAttribute) | |
| objectAttributeContent ($contentObjectAttribute) | |
| preStoreClassAttribute ($classAttribute, $version) | |
| sortKey ($contentObjectAttribute) | |
| sortKeyType () | |
| storeClassAttributeContent ($classAttribute, $content) | |
| storeObjectAttribute ($contentObjectAttribute) | |
| supportsBatchInitializeObjectAttribute () | |
| title ($contentObjectAttribute, $name=null) | |
| toString ($contentObjectAttribute) | |
| validateCollectionAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
| validateObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
Static Public Member Functions | |
| static | fetchCountry ($value, $fetchBy=false) |
| static | fetchCountryList () |
| static | fetchTranslatedNames (&$countries) |
Public Attributes | |
| const | DATA_TYPE_STRING = 'ezcountry' |
| const | DEFAULT_LIST_FIELD = 'data_text5' |
| const | MULTIPLE_CHOICE_FIELD = 'data_int1' |
Static Protected Member Functions | |
| static | compareCountryNames ($a, $b) |
| Sort callback used by fetchTranslatedNames to compare two country arrays. | |
A content datatype that contains country.
The list of countries is fetched from contenet.ini. Country is stored as text string.
Definition at line 22 of file ezcountrytype.php.
| eZCountryType::classAttributeContent | ( | $ | classAttribute | ) |
Returns the content data for the given content class attribute.
Reimplemented from eZDataType.
Definition at line 331 of file ezcountrytype.php.
| static eZCountryType::compareCountryNames | ( | $ | a, |
| $ | b | ||
| ) | [static, protected] |
Sort callback used by fetchTranslatedNames to compare two country arrays.
| array | $a | Country 1 |
| array | $b | Country 2 |
Definition at line 76 of file ezcountrytype.php.
| eZCountryType::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 449 of file ezcountrytype.php.
Definition at line 30 of file ezcountrytype.php.
| eZCountryType::fetchClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Fetches the HTTP input for the content class attribute.
Reimplemented from eZDataType.
Definition at line 109 of file ezcountrytype.php.
| eZCountryType::fetchCollectionAttributeHTTPInput | ( | $ | collection, |
| $ | collectionAttribute, | ||
| $ | http, | ||
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Fetches the http post variables for collected information
Reimplemented from eZDataType.
Definition at line 266 of file ezcountrytype.php.
| static eZCountryType::fetchCountry | ( | $ | value, |
| $ | fetchBy = false |
||
| ) | [static] |
Fetches country by $fetchBy. if $fetchBy is false country name will be used.
Definition at line 85 of file ezcountrytype.php.
Referenced by classAttributeContent(), fetchClassAttributeHTTPInput(), eZContentFunctionCollection\fetchCountryList(), fetchObjectAttributeHTTPInput(), and objectAttributeContent().
| static eZCountryType::fetchCountryList | ( | ) | [static] |
Fetches country list from ini.
Definition at line 40 of file ezcountrytype.php.
Referenced by fetchCountry(), and fetchObjectAttributeHTTPInput().
| eZCountryType::fetchObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Fetches the http post var and stores it in the data instance.
Reimplemented from eZDataType.
Definition at line 222 of file ezcountrytype.php.
| static eZCountryType::fetchTranslatedNames | ( | &$ | countries | ) | [static] |
Fetches translated country names from locale $countries will be updated.
Definition at line 56 of file ezcountrytype.php.
Referenced by fetchCountryList().
| eZCountryType::fromString | ( | $ | contentObjectAttribute, |
| $ | string | ||
| ) |
Reimplemented from eZDataType.
Definition at line 379 of file ezcountrytype.php.
| eZCountryType::hasObjectAttributeContent | ( | $ | contentObjectAttribute | ) |
true if the datatype finds any content in the attribute $contentObjectAttribute. Reimplemented from eZDataType.
Definition at line 406 of file ezcountrytype.php.
| eZCountryType::initializeObjectAttribute | ( | $ | contentObjectAttribute, |
| $ | currentVersion, | ||
| $ | originalContentObjectAttribute | ||
| ) |
Sets the default value.
Reimplemented from eZDataType.
Definition at line 169 of file ezcountrytype.php.
| eZCountryType::insertSimpleString | ( | $ | object, |
| $ | objectVersion, | ||
| $ | objectLanguage, | ||
| $ | objectAttribute, | ||
| $ | string, | ||
| &$ | result | ||
| ) |
Inserts the string $string to the content object attribute $objectAttribute.
| $object | The contentobject in which the attribute is contained | |
| $objectVersion | The current version of the object it is being worked on | |
| $objectLanguage | The current language being worked on | |
| $objectAttribute | The attribute which will get the file | |
| $filePath | Full path including the filename | |
| [out] | $result | Array which will be filled with information on the process, it will contain:
|
true if the file was stored correctly in the attribute or false if something failed. null (the default) if does not support HTTP files. null Reimplemented from eZDataType.
Definition at line 297 of file ezcountrytype.php.
Reimplemented from eZDataType.
Definition at line 413 of file ezcountrytype.php.
Reimplemented from eZDataType.
Definition at line 418 of file ezcountrytype.php.
Simple string insertion is supported.
Reimplemented from eZDataType.
Definition at line 292 of file ezcountrytype.php.
| eZCountryType::metaData | ( | $ | contentObjectAttribute | ) |
Returns the meta data used for storing search indeces.
Reimplemented from eZDataType.
Definition at line 352 of file ezcountrytype.php.
| eZCountryType::objectAttributeContent | ( | $ | contentObjectAttribute | ) |
Returns the content.
Reimplemented from eZDataType.
Definition at line 311 of file ezcountrytype.php.
| eZCountryType::preStoreClassAttribute | ( | $ | classAttribute, |
| $ | version | ||
| ) |
Similar to the storeClassAttribute but is called before the attribute itself is stored and can be used to set values in the class attribute.
Reimplemented from eZDataType.
Definition at line 146 of file ezcountrytype.php.
| eZCountryType::sortKey | ( | $ | objectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 423 of file ezcountrytype.php.
Reimplemented from eZDataType.
Definition at line 444 of file ezcountrytype.php.
| eZCountryType::storeClassAttributeContent | ( | $ | classAttribute, |
| $ | content | ||
| ) |
Definition at line 152 of file ezcountrytype.php.
Referenced by preStoreClassAttribute().
| eZCountryType::storeObjectAttribute | ( | $ | objectAttribute | ) |
Stores the datatype data to the database which is related to the object attribute.
Reimplemented from eZDataType.
Definition at line 279 of file ezcountrytype.php.
Reimplemented from eZDataType.
Definition at line 454 of file ezcountrytype.php.
| eZCountryType::title | ( | $ | contentObjectAttribute, |
| $ | name = null |
||
| ) |
Returns the country for use as a title
Reimplemented from eZDataType.
Definition at line 387 of file ezcountrytype.php.
| eZCountryType::toString | ( | $ | contentObjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 374 of file ezcountrytype.php.
| eZCountryType::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 201 of file ezcountrytype.php.
| eZCountryType::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 183 of file ezcountrytype.php.
| const eZCountryType::DATA_TYPE_STRING = 'ezcountry' |
Definition at line 24 of file ezcountrytype.php.
| const eZCountryType::DEFAULT_LIST_FIELD = 'data_text5' |
Definition at line 26 of file ezcountrytype.php.
| const eZCountryType::MULTIPLE_CHOICE_FIELD = 'data_int1' |
Definition at line 28 of file ezcountrytype.php.