eZ Publish  [trunk]
eZISBNGroup Class Reference

The class eZISBNGroup handles ISBN Registration groups. More...

+ Inheritance diagram for eZISBNGroup:
+ Collaboration diagram for eZISBNGroup:

List of all members.

Public Member Functions

 eZISBNGroup ($row)

Static Public Member Functions

static cleanAll ()
static create ($groupNumber, $description="")
static definition ()
static fetchByGroup ($groupNumber, $asObject=true)
static fetchList ($asObject=true)
static removeByID ($id)

Detailed Description

The class eZISBNGroup handles ISBN Registration groups.

Contains a list of registration numbers that exists for each area. The registration group is the second field of an ISBN-13 number. Example: 978-0-11-000222-4 where 0 is the registration group number.

The different Registration numbers are described in more detail at http://www.isbn-international.org

Definition at line 23 of file ezisbngroup.php.


Member Function Documentation

static eZISBNGroup::cleanAll ( ) [static]

Removes all ISBN groups from the database.

Definition at line 122 of file ezisbngroup.php.

Referenced by eZISBNType\cleanDBDataBeforeImport().

static eZISBNGroup::create ( groupNumber,
description = "" 
) [static]

Create a new area for an ISBN number.

Parameters:
$groupNumberis the unique identifier for the area. Could be from 1 to 5 digits.
$descriptiona small description of the registration group area.
Returns:
a new eZISBNGroup object containing group number and a description.

Definition at line 65 of file ezisbngroup.php.

static eZISBNGroup::definition ( ) [static]

returns a definition of the ISBN group.

Reimplemented from eZPersistentObject.

Definition at line 37 of file ezisbngroup.php.

Referenced by cleanAll(), fetchByGroup(), fetchList(), and removeByID().

Constructor

Definition at line 28 of file ezisbngroup.php.

Referenced by create().

static eZISBNGroup::fetchByGroup ( groupNumber,
asObject = true 
) [static]
Parameters:
$groupNumberis the unique number of the Registration group area.
$asObjectWhether if the result should be sent back as objects or an array.
Returns:
the group range list for ISBN groups.

Definition at line 104 of file ezisbngroup.php.

Referenced by eZISBN13\extractISBNNumber().

static eZISBNGroup::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.

Definition at line 90 of file ezisbngroup.php.

Referenced by eZISBN13\attribute().

static eZISBNGroup::removeByID ( id) [static]

Removes the ISBN group based on ID $id.

Parameters:
$idis the id the object will be removed based on.

Definition at line 79 of file ezisbngroup.php.


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