|
eZ Publish
[trunk]
|
Handles ISBN type strings. More...
Inheritance diagram for eZISBNType:
Collaboration diagram for eZISBNType:Public Member Functions | |
| classAttributeContent ($classAttribute) | |
| cleanDBDataBeforeImport () | |
| customClassAttributeHTTPAction ($http, $action, $classAttribute) | |
| eZISBNType () | |
| fetchClassAttributeHTTPInput ($http, $base, $classAttribute) | |
| fetchObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
| fromString ($contentObjectAttribute, $string) | |
| hasObjectAttributeContent ($contentObjectAttribute) | |
| initializeClassAttribute ($classAttribute) | |
| isIndexable () | |
| metaData ($contentObjectAttribute) | |
| objectAttributeContent ($contentObjectAttribute) | |
| preStoreClassAttribute ($classAttribute, $version) | |
| storeClassAttributeContent ($classAttribute, $content) | |
| storeObjectAttribute ($attribute) | |
| supportsBatchInitializeObjectAttribute () | |
| title ($data_instance, $name=null) | |
| toString ($contentObjectAttribute) | |
| validateObjectAttributeHTTPInput ($http, $base, $contentObjectAttribute) | |
Static Public Member Functions | |
| static | convertISBN10toISBN13 ($isbnNr) |
Public Attributes | |
| const | CLASS_IS_ISBN13 = 'data_int1' |
| const | CONTENT_VALUE = 'data_text' |
| const | DATA_TYPE_STRING = "ezisbn" |
Private Member Functions | |
| validateISBN13Checksum ($isbnNr, &$error) | |
| validateISBNChecksum ($isbnNr) | |
Handles ISBN type strings.
Definition at line 18 of file ezisbntype.php.
| eZISBNType::classAttributeContent | ( | $ | classAttribute | ) |
Returns the content data for the given content class attribute.
Reimplemented from eZDataType.
Definition at line 348 of file ezisbntype.php.
See also eZDataType:cleanDBDataBeforeImport().
Reimplemented from eZDataType.
Definition at line 419 of file ezisbntype.php.
| static eZISBNType::convertISBN10toISBN13 | ( | $ | isbnNr | ) | [static] |
Calculate the ISBN-13 checkdigit and return a valid ISBN-13 number based on an ISBN-10 number as input.
Definition at line 189 of file ezisbntype.php.
Referenced by fetchObjectAttributeHTTPInput(), and eZISBN10To13Converter\updateContentObjectAttribute().
| eZISBNType::customClassAttributeHTTPAction | ( | $ | http, |
| $ | action, | ||
| $ | classAttribute | ||
| ) |
Executes a custom action for a class attribute which was defined on the web page.
Reimplemented from eZDataType.
Definition at line 268 of file ezisbntype.php.
Definition at line 24 of file ezisbntype.php.
| eZISBNType::fetchClassAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | classAttribute | ||
| ) |
Fetches the HTTP input for the content class attribute.
Reimplemented from eZDataType.
Definition at line 279 of file ezisbntype.php.
| eZISBNType::fetchObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Fetches the http post var string input and stores it in the data instance.
Reimplemented from eZDataType.
Definition at line 213 of file ezisbntype.php.
| eZISBNType::fromString | ( | $ | contentObjectAttribute, |
| $ | string | ||
| ) |
Reimplemented from eZDataType.
Definition at line 383 of file ezisbntype.php.
| eZISBNType::hasObjectAttributeContent | ( | $ | contentObjectAttribute | ) |
Check if an ISBN value exist in the datatype.
Reimplemented from eZDataType.
Definition at line 411 of file ezisbntype.php.
| eZISBNType::initializeClassAttribute | ( | $ | classAttribute | ) |
Initializes the class attribute. data_int will be se default to 1, as this is ISBN-13.
Reimplemented from eZDataType.
Definition at line 400 of file ezisbntype.php.
ISBN numbers are indexable, returns true.
Reimplemented from eZDataType.
Definition at line 361 of file ezisbntype.php.
| eZISBNType::metaData | ( | $ | contentObjectAttribute | ) |
Returns the meta data used for storing search indeces.
Reimplemented from eZDataType.
Definition at line 369 of file ezisbntype.php.
| eZISBNType::objectAttributeContent | ( | $ | contentObjectAttribute | ) |
| eZISBNType::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 301 of file ezisbntype.php.
| eZISBNType::storeClassAttributeContent | ( | $ | classAttribute, |
| $ | content | ||
| ) |
Definition at line 306 of file ezisbntype.php.
Referenced by preStoreClassAttribute().
| eZISBNType::storeObjectAttribute | ( | $ | attribute | ) |
Reimplemented from eZDataType.
Definition at line 427 of file ezisbntype.php.
| eZISBNType::title | ( | $ | data_instance, |
| $ | name = null |
||
| ) |
| eZISBNType::toString | ( | $ | contentObjectAttribute | ) |
Reimplemented from eZDataType.
Definition at line 378 of file ezisbntype.php.
| eZISBNType::validateISBN13Checksum | ( | $ | isbnNr, |
| &$ | error | ||
| ) | [private] |
| $isbnNr | A string containing the number without any dashes. |
true if it is valid. Definition at line 176 of file ezisbntype.php.
| eZISBNType::validateISBNChecksum | ( | $ | isbnNr | ) | [private] |
Validates the ISBN number $isbnNr. All characters should be numeric except the last digit that may be the character X, which should be calculated as 10.
| $isbnNr | A string containing the number without any dashes. |
true if it is valid. Definition at line 144 of file ezisbntype.php.
Referenced by validateObjectAttributeHTTPInput().
| eZISBNType::validateObjectAttributeHTTPInput | ( | $ | http, |
| $ | base, | ||
| $ | contentObjectAttribute | ||
| ) |
Validates the input and returns true if the input was valid for this datatype.
Reimplemented from eZDataType.
Definition at line 35 of file ezisbntype.php.
| const eZISBNType::CLASS_IS_ISBN13 = 'data_int1' |
Definition at line 21 of file ezisbntype.php.
| const eZISBNType::CONTENT_VALUE = 'data_text' |
Definition at line 22 of file ezisbntype.php.
| const eZISBNType::DATA_TYPE_STRING = "ezisbn" |
Definition at line 20 of file ezisbntype.php.