eZPublish  4.4
eZVatType Class Reference

eZVatType handles different VAT types More...

+ Inheritance diagram for eZVatType:
+ Collaboration diagram for eZVatType:

Public Member Functions

 eZVatType ($row)
 
 getPercentage ($object, $country)
 
 isDynamic ()
 
 VATTypeList ()
 
- 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

static create ()
 
static definition ()
 
static dynamicVatType ($asObject=true)
 
static fetch ($id, $asObject=true)
 
static fetchDependentClassesCount ($vatID)
 Fetches number of product classes having given VAT type set as default. More...
 
static fetchDependentProductsCount ($vatID)
 Fetches number of products using given VAT type. More...
 
static fetchList ($asObject=true, $skipDynamic=false)
 
 removeThis ()
 Remove given VAT type and all references to it. More...
 
- 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)
 

Public Attributes

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

Static Private Member Functions

static dynamicVatTypeName ()
 Return name of the "fake" dynamic VAT type. More...
 
static resetToDefaultInProducts ($oldVAT)
 Change VAT type in all products from $oldVAT to the default VAT of a product class. More...
 

Detailed Description

eZVatType handles different VAT types

Member Function Documentation

static eZVatType::definition ( )
static

Referenced by fetch(), fetchList(), and removeThis().

static eZVatType::dynamicVatType (   $asObject = true)
static

Referenced by fetch(), and fetchList().

static eZVatType::dynamicVatTypeName ( )
staticprivate

Return name of the "fake" dynamic VAT type.

Referenced by dynamicVatType().

eZVatType::eZVatType (   $row)

Referenced by create(), and dynamicVatType().

static eZVatType::fetch (   $id,
  $asObject = true 
)
static
static eZVatType::fetchDependentClassesCount (   $vatID)
static

Fetches number of product classes having given VAT type set as default.

Returns
Number of dependent product classes.

Referenced by findDependencies().

static eZVatType::fetchDependentProductsCount (   $vatID)
static

Fetches number of products using given VAT type.

Parameters
$vatIDid of VAT type to count dependent products for.
Returns
Number of dependent products.

Referenced by findDependencies().

static eZVatType::fetchList (   $asObject = true,
  $skipDynamic = false 
)
static
Parameters
$skipDynamicif false, include dynamic VAT type to the list being returned.

Referenced by applyChanges(), eZPriceType\unserializeContentClassAttribute(), eZSimplePrice\unserializeContentClassAttribute(), eZMultiPriceType\unserializeContentClassAttribute(), and VATTypeList().

eZVatType::getPercentage (   $object,
  $country 
)
eZVatType::isDynamic ( )
eZVatType::removeThis ( )
static

Remove given VAT type and all references to it.

Drops VAT charging rules referencing the VAT type. Resets VAT type in associated products to its default value for a product class.

Parameters
$vatIDid of VAT type to remove.
static eZVatType::resetToDefaultInProducts (   $oldVAT)
staticprivate

Change VAT type in all products from $oldVAT to the default VAT of a product class.

Parameters
$oldVATold VAT type id.
$newVATnew VAT type id.

Referenced by removeThis().

eZVatType::VATTypeList ( )

Member Data Documentation

eZVatType::$VatTypeList

Referenced by VATTypeList().


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