|
eZ Publish
[4.2]
|
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 () |
| 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 35 of file ezproductcollection.php.
| eZProductCollection::__clone | ( | ) |
Clones the collection object and returns it.
The ID of the clone is erased.
Definition at line 77 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 178 of file ezproductcollection.php.
Referenced by eZWishList\cleanup(), eZBasket\cleanup(), eZOrder\cleanup(), eZBasket\cleanupCurrentBasket(), eZBasket\cleanupExpired(), and eZDBGarbageCollector\collectBaskets().
| eZProductCollection::copy | ( | ) |
Copies the collection object, the collection items and options.
Definition at line 89 of file ezproductcollection.php.
| static eZProductCollection::create | ( | ) | [static] |
Creates a new empty collection and returns it.
Definition at line 67 of file ezproductcollection.php.
Referenced by eZBasket\currentBasket(), and eZWishList\currentWishList().
| static eZProductCollection::definition | ( | ) | [static] |
The definition array is an associative array consists of these keys:
asc or desc.Example:
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 42 of file ezproductcollection.php.
Referenced by fetch().
| eZProductCollection::eZProductCollection | ( | $ | row | ) |
Definition at line 37 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 115 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 131 of file ezproductcollection.php.
Referenced by copy().
| static eZProductCollection::verify | ( | $ | id | ) | [static] |
Definition at line 140 of file ezproductcollection.php.