eZPublish  4.4
shop/operation_definition.php File Reference

Variables

 $OperationList = array()
 
 $OperationList ['addtobasket']
 
 $OperationList ['confirmorder']
 
 $OperationList ['updatebasket']
 
 $OperationList ['checkout']
 

Variable Documentation

$OperationList = array()
$OperationList['addtobasket']
$OperationList['confirmorder']
Initial value:
= array( 'name' => 'confirmorder',
'default_call_method' => array( 'include_file' => 'kernel/shop/ezshopoperationcollection.php',
'class' => 'eZShopOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'order_id',
'type' => 'integer',
'required' => true ) ),
'keys' => array( 'order_id' ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_confirmorder',
'keys' => array( 'order_id' ) ),
array( 'type' => 'method',
'name' => 'handle-user-country',
'frequency' => 'once',
'method' => 'handleUserCountry' ),
array( 'type' => 'method',
'name' => 'handle-shipping',
'frequency' => 'once',
'method' => 'handleShipping' ),
array( 'type' => 'method',
'name' => 'fetch-order',
'frequency' => 'once',
'method' => 'fetchOrder' ) ) )
$OperationList['updatebasket']
Initial value:
= array( 'name' => 'updatebasket',
'default_call_method' => array( 'include_file' => 'kernel/shop/ezshopoperationcollection.php',
'class' => 'eZShopOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'item_count_list',
'type' => 'array',
'required' => true ),
array( 'name' => 'item_id_list',
'type' => 'array',
'required' => true )
),
'keys' => array( 'item_count_list', 'item_id_list' ),
'body' => array( array( 'type' => 'trigger',
'name' => 'pre_updatebasket',
'keys' => array( ) ),
array( 'type' => 'method',
'name' => 'update-basket',
'frequency' => 'once',
'method' => 'updateBasket' ),
array( 'type' => 'trigger',
'name' => 'post_updatebasket',
'keys' => array( ) ),
) )
$OperationList['checkout']
Initial value:
= array( 'name' => 'checkout',
'default_call_method' => array( 'include_file' => 'kernel/shop/ezshopoperationcollection.php',
'class' => 'eZShopOperationCollection' ),
'parameter_type' => 'standard',
'parameters' => array( array( 'name' => 'order_id',
'type' => 'integer',
'required' => true ) ),
'keys' => array( 'order_id' ),
'body' => array( array( 'type' => 'method',
'name' => 'check-currency',
'frequency' => 'once',
'method' => 'checkCurrency' ),
array( 'type' => 'trigger',
'name' => 'pre_checkout',
'keys' => array( 'order_id' ) ),
array( 'type' => 'method',
'name' => 'activate-order',
'frequency' => 'once',
'method' => 'activateOrder' ),
array( 'type' => 'method',
'name' => 'send-order-email',
'frequency' => 'once',
'method' => 'sendOrderEmails' ),
array( 'type' => 'trigger',
'name' => 'post_checkout',
'keys' => array( 'order_id' ) ) ) )