eZPublishCommunityProject(LegacyStack)  2013.6
add.php File Reference

Namespaces

 kernel
 Autoloader definition for eZ Publish Kernel files.
 

Variables

 $basket = eZBasket::currentBasket()
 
 $error = $basket->canAddProduct( $object )
 
 $http = eZHTTPTool::instance()
 
switch($operationResult['status']) $ini = eZINI::instance()
 
 $module = $Params['Module']
 
 $object = eZContentObject::fetch( $ObjectID )
 
 $operationResult
 
 $OptionList = $http->sessionVariable( "AddToBasket_OptionList_" . $ObjectID )
 
 $quantity = (int)$module->NamedParameters["Quantity"]
 

Variable Documentation

switch ($operationResult['status']) $ini = eZINI::instance()
$module = $Params['Module']
$object = eZContentObject::fetch( $ObjectID )
$operationResult
Initial value:
= eZOperationHandler::execute( 'shop', 'addtobasket', array( 'basket_id' => $basket->attribute( 'id' ),
'object_id' => $ObjectID,
'quantity' => $quantity,
'option_list' => $OptionList ) )
$OptionList
Definition: add.php:36
static execute($moduleName, $operationName, $operationParameters, $lastTriggerName=null, $useTriggers=true)
Definition: ezoperationhandler.php:49
$ObjectID
Definition: attribute_edit.php:20
$quantity
Definition: add.php:13
$basket
Definition: add.php:10
$OptionList = $http->sessionVariable( "AddToBasket_OptionList_" . $ObjectID )
$quantity = (int)$module->NamedParameters["Quantity"]