|
eZ Publish
[trunk]
|
eZProductCollection is a container class which handles groups of products More...
Inheritance diagram for eZProductCollection:
Collaboration diagram for eZProductCollection:Public Member Functions | |
| __clone () | |
| Clones the collection object and returns it. | |
| copy () | |
| Copies the collection object, the collection items and options. | |
| eZProductCollection ($row) | |
| itemList ($asObject=true) | |
| Returns all production collection items as an array. | |
Static Public Member Functions | |
| static | cleanupList ($productCollectionIDList) |
| Removes all product collections based on a product collection ID list Will also remove the product collection items. | |
| static | create () |
| Creates a new empty collection and returns it. | |
| static | definition () |
| Returns the definition for the object, the default implementation is to return an empty array. | |
| static | fetch ($productCollectionID, $asObject=true) |
| Fetches an eZProductCollection based on its ID. | |
| static | verify ($id) |
eZProductCollection is a container class which handles groups of products
Definition at line 15 of file ezproductcollection.php.
Clones the collection object and returns it.
The ID of the clone is erased.
Definition at line 57 of file ezproductcollection.php.
| static eZProductCollection::cleanupList | ( | $ | productCollectionIDList | ) | [static] |
Removes all product collections based on a product collection ID list Will also remove the product collection items.
| array | $productCollectionIDList | array of eZProductCollection IDs |
Definition at line 158 of file ezproductcollection.php.
Referenced by eZWishList\cleanup(), eZBasket\cleanup(), eZOrder\cleanup(), eZBasket\cleanupCurrentBasket(), eZBasket\cleanupExpired(), and eZDBGarbageCollector\collectBaskets().
Copies the collection object, the collection items and options.
Definition at line 69 of file ezproductcollection.php.
| static eZProductCollection::create | ( | ) | [static] |
Creates a new empty collection and returns it.
Definition at line 47 of file ezproductcollection.php.
Referenced by eZBasket\currentBasket(), eZWishList\currentWishList(), and eZShopFunctionCollection\fetchBasket().
| static eZProductCollection::definition | ( | ) | [static] |
Returns the definition for the object, the default implementation is to return an empty array.
It's upto each inheriting class to return a proper definition array.
The definition array is an associative array consists of these keys:
Example: public static function definition() { return array( "fields" => array( "id" => "ID", "version" => "Version", "name" => "Name" ), "keys" => array( "id", "version" ), "function_attributes" => array( "current" => "currentVersion", "class_name" => "className" ), "increment_key" => "id", "class_name" => "eZContentClass", "sort" => array( "id" => "asc" ), "name" => "ezcontentclass" ); }
Reimplemented from eZPersistentObject.
Definition at line 22 of file ezproductcollection.php.
Referenced by fetch().
Definition at line 17 of file ezproductcollection.php.
Referenced by create().
| static eZProductCollection::fetch | ( | $ | productCollectionID, |
| $ | asObject = true |
||
| ) | [static] |
Fetches an eZProductCollection based on its ID.
| int | $productCollectionID | |
| bool | $asObject | If true, return an object. if false, returns an array |
Definition at line 95 of file ezproductcollection.php.
Referenced by verify().
| eZProductCollection::itemList | ( | $ | asObject = true | ) |
Returns all production collection items as an array.
| bool | $asObject | If true, return an object. if false, returns an array |
Definition at line 111 of file ezproductcollection.php.
Referenced by copy().
| static eZProductCollection::verify | ( | $ | id | ) | [static] |
Definition at line 120 of file ezproductcollection.php.