eZPublish  3.9
eZVatRule Class Reference

eZVatRule handles VAT charging rules for the default VAT handler. More...

+ Inheritance diagram for eZVatRule:
+ Collaboration diagram for eZVatRule:

Public Member Functions

 country ()
 
 create ()
 
 definition ()
 
 eZVatRule ($row)
 
 fetch ($id)
 
 fetchList ()
 
productCategoriesNames ()
 Return names of product categories associated with the rule. More...
 
 remove ($id)
 Remove given VAT charging rule. More...
 
 setAttribute ($attr, $val)
 
 store ()
 
vatTypeName ()
 Return VAT type name. More...
 
vatTypeObject ()
 Return VAT type object. More...
 
- 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, $custom_tables=null, $custom_conds=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

 fetchByVatType ($vatID)
 Fetch VAT rules referencing given VAT type. More...
 
 fetchCountByCategory ($categories)
 Fetch number of VAT rules referencing given product category. More...
 
 fetchCountByVatType ($vatID)
 Return number of VAT rules referencing given VAT type. More...
 
 removeReferencesToProductCategory ($cartegoryID)
 Remove references to the given product category. More...
 

Public Attributes

 $ProductCategories
 

Private Member Functions

productCategories ()
 
productCategoriesIDs ()
 Return IDs of product categories associated with the rule. More...
 
productCategoriesString ()
 Return product categories as string, separated with commas. More...
 
 removeProductCategories ($ruleID=false)
 Remove product categories with the rule from DB. More...
 

Detailed Description

eZVatRule handles VAT charging rules for the default VAT handler.

Member Function Documentation

eZVatRule::country ( )
eZVatRule::create ( )
eZVatRule::definition ( )
eZVatRule::eZVatRule (   $row)

Referenced by create().

eZVatRule::fetch (   $id)
eZVatRule::fetchByVatType (   $vatID)
static

Fetch VAT rules referencing given VAT type.

Parameters
$vatIDID of VAT type to count VAT rules for.

Referenced by eZVatType\remove().

eZVatRule::fetchCountByCategory (   $categories)
static

Fetch number of VAT rules referencing given product category.

Parameters
$categoriesCategory (single or list) to count VAT rules for.
eZVatRule::fetchCountByVatType (   $vatID)
static

Return number of VAT rules referencing given VAT type.

Parameters
$vatIDID of VAT type to count VAT rules for.
eZVatRule::fetchList ( )
& eZVatRule::productCategories ( )
private
& eZVatRule::productCategoriesIDs ( )
private

Return IDs of product categories associated with the rule.

& eZVatRule::productCategoriesNames ( )

Return names of product categories associated with the rule.

& eZVatRule::productCategoriesString ( )
private

Return product categories as string, separated with commas.

eZVatRule::remove (   $id)

Remove given VAT charging rule.

Referenced by eZVatType\remove().

eZVatRule::removeProductCategories (   $ruleID = false)
private

Remove product categories with the rule from DB.

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 remove(), and store().

eZVatRule::removeReferencesToProductCategory (   $cartegoryID)
static

Remove references to the given product category.

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 eZProductCategory\remove().

eZVatRule::setAttribute (   $attr,
  $val 
)

eZVatRule::store ( )

& eZVatRule::vatTypeName ( )

Return VAT type name.

& eZVatRule::vatTypeObject ( )

Return VAT type object.

Member Data Documentation

eZVatRule::$ProductCategories

Referenced by productCategories().


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