|
eZ Publish
[trunk]
|
eZOrderItem handles custom order itemsCustom order items are used to automatically add new items to a specific order. You can use it to e.g. specify shipping and handling, special discount or wrapping costs. More...
Inheritance diagram for eZOrderItem:
Collaboration diagram for eZOrderItem:Public Member Functions | |
| eZOrderItem ($row) | |
| priceExVAT () | |
| priceIncVAT () | |
| vatValue () | |
Static Public Member Functions | |
| cleanup () | |
| static | definition () |
| Returns the definition for the object, the default implementation is to return an empty array. | |
| static | fetchList ($orderID, $asObject=true) |
| static | fetchListByType ($orderID, $itemType, $asObject=true) |
eZOrderItem handles custom order items
Custom order items are used to automatically add new items to a specific order. You can use it to e.g. specify shipping and handling, special discount or wrapping costs.
The order items is different from the product collection items in the way that there is no product for each order item.
Definition at line 26 of file ezorderitem.php.
| eZOrderItem::cleanup | ( | ) | [static] |
Removes all order items from the database.
Definition at line 130 of file ezorderitem.php.
| static eZOrderItem::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 33 of file ezorderitem.php.
Referenced by fetchList(), and fetchListByType().
| eZOrderItem::eZOrderItem | ( | $ | row | ) |
Definition at line 28 of file ezorderitem.php.
| static eZOrderItem::fetchList | ( | $ | orderID, |
| $ | asObject = true |
||
| ) | [static] |
Definition at line 74 of file ezorderitem.php.
| static eZOrderItem::fetchListByType | ( | $ | orderID, |
| $ | itemType, | ||
| $ | asObject = true |
||
| ) | [static] |
Definition at line 84 of file ezorderitem.php.
Referenced by eZOrder\orderItemsByType().
Definition at line 114 of file ezorderitem.php.
Definition at line 100 of file ezorderitem.php.
Definition at line 95 of file ezorderitem.php.
Referenced by priceExVAT(), and priceIncVAT().