|
eZ Publish
[4.2]
|
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 () |
| 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 44 of file ezorderitem.php.
| eZOrderItem::cleanup | ( | ) | [static] |
Removes all order items from the database.
Definition at line 148 of file ezorderitem.php.
| static eZOrderItem::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 51 of file ezorderitem.php.
Referenced by fetchList(), and fetchListByType().
| eZOrderItem::eZOrderItem | ( | $ | row | ) |
Definition at line 46 of file ezorderitem.php.
| static eZOrderItem::fetchList | ( | $ | orderID, |
| $ | asObject = true |
||
| ) | [static] |
Definition at line 92 of file ezorderitem.php.
| static eZOrderItem::fetchListByType | ( | $ | orderID, |
| $ | itemType, | ||
| $ | asObject = true |
||
| ) | [static] |
Definition at line 102 of file ezorderitem.php.
Referenced by eZOrder\orderItemsByType().
| eZOrderItem::priceExVAT | ( | ) |
Definition at line 132 of file ezorderitem.php.
| eZOrderItem::priceIncVAT | ( | ) |
Definition at line 118 of file ezorderitem.php.
| eZOrderItem::vatValue | ( | ) |
Definition at line 113 of file ezorderitem.php.
Referenced by priceExVAT(), and priceIncVAT().