eZPublishCommunityProject(LegacyStack)  2013.9
productcategories.php File Reference

Namespaces

 kernel
 Autoloader definition for eZ Publish Kernel files.
 

Functions

 applyChanges ($module, $http, $productCategories=false)
 
 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 = eZTemplate::factory()
 

Function Documentation

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

Apply changes made to categories' names.

Returns
errors, empty array if none exists
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
$module = $Params['Module']
$path = array()
$path[]
Initial value:
= array( 'text' => ezpI18n::tr( 'kernel/shop/productcategories', 'Product categories' ),
'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
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" )