eZPublishCommunityProject(LegacyStack)  2013.5
vattype.php File Reference

Namespaces

 kernel
 Autoloader definition for eZ Publish Kernel files.
 

Functions

 applyChanges ($module, $http, $vatTypeArray=false)
 
 findDependencies ($vatTypeIDList, &$deps, &$haveDeps, &$canRemove)
 Determine dependent VAT rules and products for the given VAT types. More...
 
 generateUniqueVatTypeName ($vatTypes)
 Generate a unique VAT type name. More...
 

Variables

 $errors = false
 
 $http = eZHTTPTool::instance()
 
 $module = $Params['Module']
 
 $path = array()
 
 $path []
 
 $Result = array()
 
 $Result ['path'] = $path
 
 $Result ['content'] = $tpl->fetch( "design:shop/vattype.tpl" )
 
 $tpl = eZTemplate::factory()
 
if($module->isCurrentAction(
'Add')) elseif($module->
isCurrentAction( 'SaveChanges'))
elseif($module->
isCurrentAction( 'Remove')) if($module->
isCurrentAction(
'ConfirmRemoval')) 
$vatTypeArray = eZVatType::fetchList( true, true )
 

Function Documentation

applyChanges (   $module,
  $http,
  $vatTypeArray = false 
)

Apply changes made to VAT types' names and/or percentages.

Returns
errors array
findDependencies (   $vatTypeIDList,
$deps,
$haveDeps,
$canRemove 
)
private

Determine dependent VAT rules and products for the given VAT types.

generateUniqueVatTypeName (   $vatTypes)

Generate a unique VAT type name.

The generated name looks like "VAT type X" where X is a unique number.

Variable Documentation

$errors = false
$module = $Params['Module']
$path = array()
$path[]
Initial value:
= array( 'text' => ezpI18n::tr( 'kernel/shop', 'VAT types' ),
'url' => false )
static tr($context, $source, $comment=null, $arguments=null)
Translates the source $source with context $context and optional comment $comment and returns the tra...
Definition: ezpi18n.php:86
$Result = array()
$Result['path'] = $path
$Result['content'] = $tpl->fetch( "design:shop/vattype.tpl" )
if ($module->isCurrentAction( 'Add')) elseif ($module->isCurrentAction( 'SaveChanges')) elseif ($module->isCurrentAction( 'Remove')) if ($module->isCurrentAction( 'ConfirmRemoval')) $vatTypeArray = eZVatType::fetchList( true, true )

Referenced by applyChanges().