|
eZ Publish
[trunk]
|
Handles product categories used by the default VAT handler. More...
Inheritance diagram for eZProductCategory:
Collaboration diagram for eZProductCategory:Public Member Functions | |
| eZProductCategory ($row) | |
Static Public Member Functions | |
| static | create () |
| static | definition () |
| Returns the definition for the object, the default implementation is to return an empty array. | |
| static | fetch ($id, $asObject=true) |
| static | fetchByName ($name, $asObject=true) |
| static | fetchList ($asObject=true) |
| static | fetchProductCountByCategory ($categoryID) |
| Returns number of products belonging to the given category. | |
| static | removeByID ($id) |
| Remove the given category and all references to it. | |
Handles product categories used by the default VAT handler.
Definition at line 17 of file ezproductcategory.php.
| static eZProductCategory::create | ( | ) | [static] |
Definition at line 92 of file ezproductcategory.php.
| static eZProductCategory::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 24 of file ezproductcategory.php.
Referenced by fetch(), fetchByName(), fetchList(), and removeByID().
| eZProductCategory::eZProductCategory | ( | $ | row | ) |
Definition at line 19 of file ezproductcategory.php.
Referenced by create().
| static eZProductCategory::fetch | ( | $ | id, |
| $ | asObject = true |
||
| ) | [static] |
Definition at line 40 of file ezproductcategory.php.
Referenced by eZShopFunctionCollection\fetchProductCategory(), eZProductCategoryType\fromString(), eZProductCategoryType\objectAttributeContent(), and eZProductCategoryType\title().
| static eZProductCategory::fetchByName | ( | $ | name, |
| $ | asObject = true |
||
| ) | [static] |
Definition at line 48 of file ezproductcategory.php.
Referenced by eZProductCategoryType\fromString().
| static eZProductCategory::fetchList | ( | $ | asObject = true | ) | [static] |
Definition at line 56 of file ezproductcategory.php.
Referenced by applyChanges(), and eZShopFunctionCollection\fetchProductCategoryList().
| static eZProductCategory::fetchProductCountByCategory | ( | $ | categoryID | ) | [static] |
Returns number of products belonging to the given category.
Definition at line 69 of file ezproductcategory.php.
| static eZProductCategory::removeByID | ( | $ | id | ) | [static] |
Remove the given category and all references to it.
Definition at line 106 of file ezproductcategory.php.