eZPublish  4.4
eZOrderItem Class Reference

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 ()
 
- Public Member Functions inherited from eZPersistentObject
 attribute ($attr, $noFunction=false)
 
 attributes ()
 
 eZPersistentObject ($row)
 
 fill ($row)
 
 hasAttribute ($attr)
 
 hasDirtyData ()
 
 remove ($conditions=null, $extraConditions=null)
 
 setAttribute ($attr, $val)
 
 setHasDirtyData ($hasDirtyData)
 
 store ($fieldFilters=null)
 
 sync ($fieldFilters=null)
 

Static Public Member Functions

 cleanup ()
 
static definition ()
 
static fetchList ($orderID, $asObject=true)
 
static fetchListByType ($orderID, $itemType, $asObject=true)
 
- Static Public Member Functions inherited from eZPersistentObject
static conditionText ($conditions)
 
static conditionTextByRow ($conditions, $row)
 
static count ($def, $conds=null, $field=null)
 
static definition ()
 
static escapeArray ($array)
 
static fetchObject ($def, $field_filters, $conds, $asObject=true, $grouping=null, $custom_fields=null)
 
static fetchObjectList ($def, $field_filters=null, $conds=null, $sorts=null, $limit=null, $asObject=true, $grouping=false, $custom_fields=null, $custom_tables=null, $custom_conds=null)
 
static getShortAttributeName ($db, $def, $attrName)
 
static handleRows ($rows, $class_name, $asObject)
 
static newObjectOrder ($def, $orderField, $conditions)
 
static removeObject ($def, $conditions=null, $extraConditions=null)
 
static reorderObject ($def, $orderField, $conditions, $down=true)
 
static swapRow ($table, $keys, $order_id, $rows, $id1, $id2)
 
static updateObjectList ($parameters)
 

Additional Inherited Members

- Public Attributes inherited from eZPersistentObject
 $PersistentDataDirty
 Whether the data is dirty, ie needs to be stored, or not. More...
 

Detailed Description

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.

See Also
eZProductCollection eZBasket eZOrder

Member Function Documentation

eZOrderItem::cleanup ( )
static

Removes all order items from the database.

Note
Transaction unsafe. If you call several transaction unsafe methods you must enclose the calls within a db transaction; thus within db->begin and db->commit.

Referenced by eZOrder\cleanup().

static eZOrderItem::definition ( )
static

Referenced by fetchList(), and fetchListByType().

eZOrderItem::eZOrderItem (   $row)
static eZOrderItem::fetchList (   $orderID,
  $asObject = true 
)
static

Referenced by eZOrder\orderItems().

static eZOrderItem::fetchListByType (   $orderID,
  $itemType,
  $asObject = true 
)
static
eZOrderItem::priceExVAT ( )
eZOrderItem::priceIncVAT ( )
eZOrderItem::vatValue ( )

Referenced by priceExVAT(), and priceIncVAT().


The documentation for this class was generated from the following file: