eZPublishCommunityProject(LegacyStack)  2013.6
discountgroupmembershipview.php File Reference

Namespaces

 kernel
 Autoloader definition for eZ Publish Kernel files.
 

Variables

 $customers = array()
 
 $discountGroup = eZDiscountRule::fetch( $discountGroupID )
 
 $discountGroupID = null
 
if($discountGroup===null) $http = eZHTTPTool::instance()
 
if($http->hasPostVariable("AddRuleButton"))
if($http->hasPostVariable("RemoveRuleButton"))
if($http->hasPostVariable("AddCustomerButton"))
if($module->isCurrentAction(
'AddCustomer')) if($http->
hasPostVariable("RemoveCustomerButton")) 
$membershipList = eZUserDiscountRule::fetchByRuleID( $discountGroupID )
 
 $module = $Params['Module']
 
 $Result = array()
 
 $Result ['content'] = $tpl->fetch( "design:shop/discountgroupmembershipview.tpl" )
 
 $Result ['path']
 
 $ruleArray = array()
 
foreach($membershipList as
$membership) 
$ruleList = eZDiscountSubRule::fetchByRuleID( $discountGroupID )
 
foreach($ruleList as $rule) $tpl = eZTemplate::factory()
 

Variable Documentation

$customers = array()
$discountGroup = eZDiscountRule::fetch( $discountGroupID )
$discountGroupID = null
if ($discountGroup===null) $http = eZHTTPTool::instance()
if ($http->hasPostVariable("AddRuleButton")) if ($http->hasPostVariable("RemoveRuleButton")) if ($http->hasPostVariable("AddCustomerButton")) if ($module->isCurrentAction( 'AddCustomer')) if ($http->hasPostVariable("RemoveCustomerButton")) $membershipList = eZUserDiscountRule::fetchByRuleID( $discountGroupID )
$module = $Params['Module']
$Result = array()
$Result['content'] = $tpl->fetch( "design:shop/discountgroupmembershipview.tpl" )
$Result['path']
Initial value:
= array( array( 'url' => '/shop/discountgroup/',
'text' => ezpI18n::tr( 'kernel/shop', 'Group view of discount rule' ) ) )
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
foreach ($membershipList as $membership) $ruleList = eZDiscountSubRule::fetchByRuleID( $discountGroupID )
foreach ($ruleList as $rule) $tpl = eZTemplate::factory()