eZPublish  4.4
eZISBNGroupRange Class Reference

The class eZISBNGroupRange handle registration group ranges. More...

+ Inheritance diagram for eZISBNGroupRange:
+ Collaboration diagram for eZISBNGroupRange:

Public Member Functions

 eZISBNGroupRange ($row)
 
- Public Member Functions inherited from eZPersistentObject
 attribute ($attr, $noFunction=false)
 
 attributes ()
 
 eZPersistentObject ($row)
 
 fill ($row)
 
 hasAttribute ($attr)
 
 hasDirtyData ()
 
 remove ($conditions=null, $extraConditions=null)
 
 setAttribute ($attr, $val)
 
 setHasDirtyData ($hasDirtyData)
 
 store ($fieldFilters=null)
 
 sync ($fieldFilters=null)
 

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)
 
- Static Public Member Functions inherited from eZPersistentObject
static conditionText ($conditions)
 
static conditionTextByRow ($conditions, $row)
 
static count ($def, $conds=null, $field=null)
 
static definition ()
 
static escapeArray ($array)
 
static fetchObject ($def, $field_filters, $conds, $asObject=true, $grouping=null, $custom_fields=null)
 
static fetchObjectList ($def, $field_filters=null, $conds=null, $sorts=null, $limit=null, $asObject=true, $grouping=false, $custom_fields=null, $custom_tables=null, $custom_conds=null)
 
static getShortAttributeName ($db, $def, $attrName)
 
static handleRows ($rows, $class_name, $asObject)
 
static newObjectOrder ($def, $orderField, $conditions)
 
static removeObject ($def, $conditions=null, $extraConditions=null)
 
static reorderObject ($def, $orderField, $conditions, $down=true)
 
static swapRow ($table, $keys, $order_id, $rows, $id1, $id2)
 
static updateObjectList ($parameters)
 

Additional Inherited Members

- Public Attributes inherited from eZPersistentObject
 $PersistentDataDirty
 Whether the data is dirty, ie needs to be stored, or not. More...
 

Detailed Description

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

Member Function Documentation

static eZISBNGroupRange::cleanAll ( )
static

Removes all ISBN group ranges from the database.

Referenced by eZISBNType\cleanDBDataBeforeImport().

static eZISBNGroupRange::create (   $fromNumber,
  $toNumber,
  $groupFrom,
  $groupTo,
  $length 
)
static

Create a new group range for an ISBN number.

Parameters
$fromNumberGroup is starting from test number, which is based on the 5 numbers after the Prefix number.
$toNumberGroup is ending on the To test number, which is based on the 5 numbers after the Prefix number.
$groupFromGroup number is starting on, based on the length set in the Group.
$groupToGroup number is ending on, based on the length set in the group.
$lengthHow many characters $groupFrom and $groupTo should have.
Returns
a new eZISBNGroupRange object.
static eZISBNGroupRange::definition ( )
static

Definition of the ranges for ISBN groups.

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.

Parameters
$isbnNrShould be a stripped down ISBN number with just the digits (ean number).
Returns
the group range object if found and false if not found.

Referenced by eZISBN13\extractISBNNumber().

eZISBNGroupRange::eZISBNGroupRange (   $row)

Constructor

Referenced by create().

static eZISBNGroupRange::fetchList (   $asObject = true)
static
Parameters
$asObjectWhether if the result should be sent back as objects or an array.
Returns
the group range list for ISBN groups.

Referenced by eZISBN13\attribute().

static eZISBNGroupRange::removeByID (   $id)
static

Removes the ISBN group based on ID $id.


The documentation for this class was generated from the following file: