|
eZ Publish
[trunk]
|
The class eZISBNGroupRange handle registration group ranges. More...
Inheritance diagram for eZISBNGroupRange:
Collaboration diagram for eZISBNGroupRange:Public Member Functions | |
| eZISBNGroupRange ($row) | |
Static Public Member Functions | |
| static | cleanAll () |
| static | create ($fromNumber, $toNumber, $groupFrom, $groupTo, $length) |
| static | definition () |
| static | extractGroup ($isbnNr) |
| static | fetchList ($asObject=true) |
| static | removeByID ($id) |
The class eZISBNGroupRange handle registration group ranges.
Has information about how the different ranges the registration group element could be in. Example: From 0 to 5 and continues from 600-602. This means that the length of the registration group can differ from range to range.
The different Registration group ranges are described in more detail at http://www.isbn-international.org
Definition at line 25 of file ezisbngrouprange.php.
| static eZISBNGroupRange::cleanAll | ( | ) | [static] |
Removes all ISBN group ranges from the database.
Definition at line 150 of file ezisbngrouprange.php.
Referenced by eZISBNType\cleanDBDataBeforeImport().
| static eZISBNGroupRange::create | ( | $ | fromNumber, |
| $ | toNumber, | ||
| $ | groupFrom, | ||
| $ | groupTo, | ||
| $ | length | ||
| ) | [static] |
Create a new group range for an ISBN number.
| $fromNumber | Group is starting from test number, which is based on the 5 numbers after the Prefix number. |
| $toNumber | Group is ending on the To test number, which is based on the 5 numbers after the Prefix number. |
| $groupFrom | Group number is starting on, based on the length set in the Group. |
| $groupTo | Group number is ending on, based on the length set in the group. |
| $length | How many characters $groupFrom and $groupTo should have. |
Definition at line 86 of file ezisbngrouprange.php.
| static eZISBNGroupRange::definition | ( | ) | [static] |
Definition of the ranges for ISBN groups.
Reimplemented from eZPersistentObject.
Definition at line 39 of file ezisbngrouprange.php.
Referenced by cleanAll(), extractGroup(), fetchList(), and removeByID().
| static eZISBNGroupRange::extractGroup | ( | $ | isbnNr | ) | [static] |
Will extract the group number based on the different ranges which is based on the 5 first digits after the Prefix field.
| $isbnNr | Should be a stripped down ISBN number with just the digits (ean number). |
Definition at line 128 of file ezisbngrouprange.php.
Referenced by eZISBN13\extractISBNNumber().
| eZISBNGroupRange::eZISBNGroupRange | ( | $ | row | ) |
| static eZISBNGroupRange::fetchList | ( | $ | asObject = true | ) | [static] |
| $asObject | Whether if the result should be sent back as objects or an array. |
Definition at line 113 of file ezisbngrouprange.php.
Referenced by eZISBN13\attribute().
| static eZISBNGroupRange::removeByID | ( | $ | id | ) | [static] |
Removes the ISBN group based on ID $id.
Definition at line 103 of file ezisbngrouprange.php.