eZPublish  3.8
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

 definition ()
 
 eZOrderItem ($row)
 
 fetchList ($orderID, $asObject=true)
 
 fetchListByType ($orderID, $itemType, $asObject=true)
 
priceExVAT ()
 
priceIncVAT ()
 
vatValue ()
 
- Public Member Functions inherited from eZPersistentObject
attribute ($attr, $noFunction=false)
 
 attributes ()
 
 conditionText (&$conditions)
 
conditionTextByRow (&$conditions, &$row)
 
 definition ()
 
escapeArray (&$array)
 
 eZPersistentObject ($row)
 
 fetchObject (&$def, $field_filters, $conds, $asObject=true, $grouping=null, $custom_fields=null)
 
 fetchObjectList (&$def, $field_filters=null, $conds=null, $sorts=null, $limit=null, $asObject=true, $grouping=false, $custom_fields=null)
 
 fill (&$row)
 
 getShortAttributeName (&$db, &$def, $attrName)
 
 handleRows (&$rows, $class_name, $asObject)
 
 hasAttribute ($attr)
 
 hasDirtyData ()
 
 newObjectOrder (&$def, $orderField, $conditions)
 
 remove ($conditions=null, $extraConditions=null)
 
 removeObject (&$def, $conditions=null, $extraConditions=null)
 
 reorderObject (&$def, $orderField, $conditions, $down=true)
 
 setAttribute ($attr, $val)
 
 setHasDirtyData ($hasDirtyData)
 
 store ($fieldFilters=null)
 
 swapRow ($table, &$keys, &$order_id, &$rows, $id1, $id2)
 
 sync ($fieldFilters=null)
 
 updateObjectList ($parameters)
 

Static Public Member Functions

 cleanup ()
 

Public Attributes

 $IsVATIncluded = false
 
 $VATValue = false
 Cached value of the vat percentage. 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().

eZOrderItem::definition ( )

Referenced by fetchList(), and fetchListByType().

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

Referenced by eZOrder\orderItems().

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

Referenced by priceExVAT(), and priceIncVAT().

Member Data Documentation

eZOrderItem::$IsVATIncluded = false
eZOrderItem::$VATValue = false

Cached value of the vat percentage.

Referenced by vatValue().


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