eZPublishCommunityProject(LegacyStack)  2013.6
editvatrule.php File Reference

Namespaces

 kernel
 Autoloader definition for eZ Publish Kernel files.
 

Functions

 checkEnteredData ($country, $categories, $vatType, $productCategories, $ruleID)
 Check entered data. More...
 

Variables

 $errorHeader = false
 
 $errors = false
 
 $module = $Params['Module']
 
 $pathText = ezpI18n::tr( 'kernel/shop/editvatrule', 'Create new VAT charging rule' )
 
 $productCategories = eZProductCategory::fetchList()
 
 $Result = array()
 
 $Result ['content'] = $tpl->fetch( "design:shop/editvatrule.tpl" )
 
 $Result ['path']
 
 $tpl = eZTemplate::factory()
 
 $tplCategoryIDs = array()
 
 $tplCountry = false
 
 $tplVatTypeID = false
 
if($errors!==false$vatTypes = eZVatType::fetchList( true, true )
 
if($module->isCurrentAction(
'Cancel')) else if(in_array($module->
currentAction(), array(
'Create', 'StoreChanges'))) if(is_numeric($ruleID)) 
else
 

Function Documentation

checkEnteredData (   $country,
  $categories,
  $vatType,
  $productCategories,
  $ruleID 
)

Check entered data.

Returns
list of errors found, or false if the data is ok.

Variable Documentation

$errorHeader = false

Referenced by checkEnteredData().

$errors = false
$module = $Params['Module']
$pathText = ezpI18n::tr( 'kernel/shop/editvatrule', 'Create new VAT charging rule' )
$Result = array()
$Result['content'] = $tpl->fetch( "design:shop/editvatrule.tpl" )
$Result['path']
Initial value:
= array( array( 'text' => $pathText,
'url' => false ) )
if($module->isCurrentAction( 'Cancel')) else if($module->isCurrentAction( 'Create')) else if($module->isCurrentAction( 'StoreChanges')) $pathText
Definition: editcurrency.php:88
$tplCategoryIDs = array()
$tplCountry = false
$tplVatTypeID = false
if ($module->isCurrentAction( 'Cancel')) else if (in_array($module->currentAction(), array( 'Create', 'StoreChanges'))) if (is_numeric($ruleID)) else
Initial value:
{
$tplVatRule = null