eZPublish  3.8
productcategories.php File Reference

Functions

 applyChanges ($module, $http, &$errors, $productCategories=false)
 Apply changes made to categories' names. More...
 
 generateUniqueCategoryName ($productCategories)
 Generate a unique category name. More...
 

Variables

 $errors = false
 
 $http =& eZHttpTool::instance()
 
 $module =& $Params["Module"]
 
 $path = array()
 
 $path []
 
if($module->isCurrentAction(
'Remove')) if($module->
isCurrentAction(
'ConfirmRemoval')) elseif($module->
isCurrentAction( 'Add'))
elseif($module->
isCurrentAction( 'StoreChanges')) 
$productCategories = eZProductCategory::fetchList()
 
 $Result = array()
 
 $Result ['path'] =& $path
 
 $Result ['content'] =& $tpl->fetch( "design:shop/productcategories.tpl" )
 
 $tpl =& templateInit()
 

Function Documentation

applyChanges (   $module,
  $http,
$errors,
  $productCategories = false 
)

Apply changes made to categories' names.

generateUniqueCategoryName (   $productCategories)

Generate a unique category name.

The generated name looks like "Product category X" where X is a unique number.

Variable Documentation

$errors = false
$http =& eZHttpTool::instance()
$module =& $Params["Module"]
$path = array()
$path[]
Initial value:
= array( 'text' => ezi18n( 'kernel/shop/productcategories', 'Product categories' ),
'url' => false )
if ($module->isCurrentAction( 'Remove')) if ($module->isCurrentAction( 'ConfirmRemoval')) elseif ($module->isCurrentAction( 'Add')) elseif ($module->isCurrentAction( 'StoreChanges')) $productCategories = eZProductCategory::fetchList()
$Result = array()
$Result['path'] =& $path
$Result['content'] =& $tpl->fetch( "design:shop/productcategories.tpl" )
$tpl =& templateInit()