| [ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 <?php 2 // 3 // Created on: <01-Nov-2002 13:39:10 amos> 4 // 5 // SOFTWARE NAME: eZ publish 6 // SOFTWARE RELEASE: 3.9.0 7 // BUILD VERSION: 17785 8 // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS 9 // SOFTWARE LICENSE: GNU General Public License v2.0 10 // NOTICE: > 11 // This program is free software; you can redistribute it and/or 12 // modify it under the terms of version 2.0 of the GNU General 13 // Public License as published by the Free Software Foundation. 14 // 15 // This program is distributed in the hope that it will be useful, 16 // but WITHOUT ANY WARRANTY; without even the implied warranty of 17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 // GNU General Public License for more details. 19 // 20 // You should have received a copy of version 2.0 of the GNU General 21 // Public License along with this program; if not, write to the Free 22 // Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 23 // MA 02110-1301, USA. 24 // 25 // 26 27 /*! \file operation_definition.php 28 */ 29 30 $OperationList = array(); 31 // This operation is used when a user tries to add an object to the basket 32 // It will be called from content/add 33 $OperationList['addtobasket'] = array( 'name' => 'addtobasket', 34 'default_call_method' => array( 'include_file' => 'kernel/shop/ezshopoperationcollection.php', 35 'class' => 'eZShopOperationCollection' ), 36 'parameter_type' => 'standard', 37 'parameters' => array( array( 'name' => 'object_id', 38 'type' => 'integer', 39 'required' => true ), 40 array( 'name' => 'option_list', 41 'type' => 'array', 42 'required' => true ), 43 array( 'name' => 'basket_id', 44 'type' => 'integer', 45 'required' => true ) ), 46 'keys' => array( 'basket_id', 'object_id' ), 47 'body' => array( array( 'type' => 'trigger', 48 'name' => 'pre_addtobasket', 49 'keys' => array( 'object_id' ) ), 50 array( 'type' => 'method', 51 'name' => 'add-to-basket', 52 'frequency' => 'once', 53 'method' => 'addToBasket' ), 54 array( 'type' => 'method', 55 'name' => 'update-shipping-info', 56 'frequency' => 'once', 57 'method' => 'updateShippingInfo' ), 58 array( 'type' => 'trigger', 59 'name' => 'post_addtobasket', 60 'keys' => array( 'object_id' ) ) ) ); 61 62 $OperationList['confirmorder'] = array( 'name' => 'confirmorder', 63 'default_call_method' => array( 'include_file' => 'kernel/shop/ezshopoperationcollection.php', 64 'class' => 'eZShopOperationCollection' ), 65 'parameter_type' => 'standard', 66 'parameters' => array( array( 'name' => 'order_id', 67 'type' => 'integer', 68 'required' => true ) ), 69 'keys' => array( 'order_id' ), 70 'body' => array( array( 'type' => 'trigger', 71 'name' => 'pre_confirmorder', 72 'keys' => array( 'order_id' ) ), 73 array( 'type' => 'method', 74 'name' => 'handle-user-country', 75 'frequency' => 'once', 76 'method' => 'handleUserCountry' ), 77 array( 'type' => 'method', 78 'name' => 'handle-shipping', 79 'frequency' => 'once', 80 'method' => 'handleShipping' ), 81 array( 'type' => 'method', 82 'name' => 'fetch-order', 83 'frequency' => 'once', 84 'method' => 'fetchOrder' ) ) ); 85 86 $OperationList['updatebasket'] = array( 'name' => 'updatebasket', 87 'default_call_method' => array( 'include_file' => 'kernel/shop/ezshopoperationcollection.php', 88 'class' => 'eZShopOperationCollection' ), 89 'parameter_type' => 'standard', 90 'parameters' => array( array( 'name' => 'item_count_list', 91 'type' => 'array', 92 'required' => true ), 93 array( 'name' => 'item_id_list', 94 'type' => 'array', 95 'required' => true ) 96 ), 97 'keys' => array( ), 98 'body' => array( array( 'type' => 'trigger', 99 'name' => 'pre_updatebasket', 100 'keys' => array( ) ), 101 array( 'type' => 'method', 102 'name' => 'update-basket', 103 'frequency' => 'once', 104 'method' => 'updateBasket' ), 105 array( 'type' => 'trigger', 106 'name' => 'post_updatebasket', 107 'keys' => array( ) ), 108 ) ); 109 110 $OperationList['checkout'] = array( 'name' => 'checkout', 111 'default_call_method' => array( 'include_file' => 'kernel/shop/ezshopoperationcollection.php', 112 'class' => 'eZShopOperationCollection' ), 113 'parameter_type' => 'standard', 114 'parameters' => array( array( 'name' => 'order_id', 115 'type' => 'integer', 116 'required' => true ) ), 117 'keys' => array( 'order_id' ), 118 'body' => array( array( 'type' => 'trigger', 119 'name' => 'pre_checkout', 120 'keys' => array( 'order_id' ) ), 121 array( 'type' => 'method', 122 'name' => 'activate-order', 123 'frequency' => 'once', 124 'method' => 'activateOrder' ), 125 array( 'type' => 'method', 126 'name' => 'send-order-email', 127 'frequency' => 'once', 128 'method' => 'sendOrderEmails' ), 129 array( 'type' => 'trigger', 130 'name' => 'post_checkout', 131 'keys' => array( 'order_id' ) ) ) ); 132 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
| Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |