eZPublish  3.8
eZVatType Class Reference

eZVatType handles different VAT types More...

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

Public Member Functions

 create ()
 
 definition ()
 
 dynamicVatType ($asObject=true)
 
 eZVatType ($row)
 
 fetch ($id, $asObject=true)
 
 fetchList ($asObject=true, $skipDynamic=false)
 
 getPercentage ($object, $country)
 
isDynamic ()
 
VATTypeList ()
 
- 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

 fetchDependentClassesCount ($vatID)
 Fetches number of product classes having given VAT type set as default. More...
 
 fetchDependentProductsCount ($vatID)
 Fetches number of products using given VAT type. More...
 
 remove ($vatID)
 Remove given VAT type and all references to it. More...
 

Public Attributes

 $VatTypeList
 

Static Private Member Functions

 dynamicVatTypeName ()
 Return name of the "fake" dynamic VAT type. More...
 
 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

eZVatType::create ( )
eZVatType::definition ( )

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

eZVatType::dynamicVatType (   $asObject = true)

Referenced by fetch(), and fetchList().

eZVatType::dynamicVatTypeName ( )
staticprivate

Return name of the "fake" dynamic VAT type.

Referenced by dynamicVatType().

eZVatType::eZVatType (   $row)

Referenced by create(), and dynamicVatType().

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().

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().

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

Referenced by applyChanges(), and VATTypeList().

eZVatType::getPercentage (   $object,
  $country 
)
& eZVatType::isDynamic ( )
eZVatType::remove (   $vatID)
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.
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 remove().

& eZVatType::VATTypeList ( )

Member Data Documentation

eZVatType::$VatTypeList

Referenced by VATTypeList().


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