PageRenderTime 49ms CodeModel.GetById 11ms RepoModel.GetById 1ms app.codeStats 0ms

/kernel/shop/function_definition.php

https://github.com/Socrattes2099/ezpublish
PHP | 193 lines | 151 code | 14 blank | 28 comment | 0 complexity | 91f6fc7fc22b5517f72a025eff8bad40 MD5 | raw file
  1. <?php
  2. //
  3. // Created on: <06-feb-2003 10:28:49 sp>
  4. //
  5. // ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
  6. // SOFTWARE NAME: eZ Publish
  7. // SOFTWARE RELEASE: 4.1.x
  8. // COPYRIGHT NOTICE: Copyright (C) 1999-2010 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. // ## END COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
  27. //
  28. /*! \file
  29. */
  30. $FunctionList = array();
  31. $FunctionList['basket'] = array( 'name' => 'basket',
  32. 'operation_types' => array( 'read' ),
  33. 'call_method' => array( 'class' => 'eZShopFunctionCollection',
  34. 'method' => 'fetchBasket' ),
  35. 'parameter_type' => 'standard',
  36. 'parameters' => array( ) );
  37. $FunctionList['best_sell_list'] = array( 'name' => 'best_sell_list',
  38. 'operation_types' => array( 'read' ),
  39. 'call_method' => array( 'class' => 'eZShopFunctionCollection',
  40. 'method' => 'fetchBestSellList' ),
  41. 'parameter_type' => 'standard',
  42. 'parameters' => array( array( 'name' => 'top_parent_node_id',
  43. 'type' => 'integer',
  44. 'required' => true ),
  45. array( 'name' => 'limit',
  46. 'type' => 'integer',
  47. 'required' => false ),
  48. array( 'name' => 'offset',
  49. 'type' => 'integer',
  50. 'required' => false,
  51. 'default' => false ),
  52. array( 'name' => 'start_time',
  53. 'type' => 'integer',
  54. 'required' => false,
  55. 'default' => false ),
  56. array( 'name' => 'end_time',
  57. 'type' => 'integer',
  58. 'required' => false,
  59. 'default' => false ),
  60. array( 'name' => 'duration',
  61. 'type' => 'integer',
  62. 'required' => false,
  63. 'default' => false ),
  64. array( 'name' => 'ascending',
  65. 'type' => 'boolean',
  66. 'required' => false,
  67. 'default' => false ),
  68. array( 'name' => 'extended',
  69. 'type' => 'boolean',
  70. 'required' => false,
  71. 'default' => false ) ) );
  72. $FunctionList['related_purchase'] = array( 'name' => 'related_purchase',
  73. 'operation_types' => array( 'read' ),
  74. 'call_method' => array( 'class' => 'eZShopFunctionCollection',
  75. 'method' => 'fetchRelatedPurchaseList' ),
  76. 'parameter_type' => 'standard',
  77. 'parameters' => array( array( 'name' => 'contentobject_id',
  78. 'type' => 'integer',
  79. 'required' => true ),
  80. array( 'name' => 'limit',
  81. 'type' => 'integer',
  82. 'required' => true ) ) );
  83. $FunctionList['wish_list'] = array( 'name' => 'wish_list',
  84. 'operation_types' => array( 'read' ),
  85. 'call_method' => array( 'class' => 'eZShopFunctionCollection',
  86. 'method' => 'fetchWishList' ),
  87. 'parameter_type' => 'standard',
  88. 'parameters' => array( array( 'name' => 'production_id',
  89. 'type' => 'integer',
  90. 'required' => true ),
  91. array( 'name' => 'offset',
  92. 'type' => 'integer',
  93. 'required' => false,
  94. 'default' => false ),
  95. array( 'name' => 'limit',
  96. 'type' => 'integer',
  97. 'required' => false,
  98. 'default' => false ) ) );
  99. $FunctionList['wish_list_count'] = array( 'name' => 'wish_list_count',
  100. 'operation_types' => array( 'read' ),
  101. 'call_method' => array( 'class' => 'eZShopFunctionCollection',
  102. 'method' => 'fetchWishListCount' ),
  103. 'parameter_type' => 'standard',
  104. 'parameters' => array( array( 'name' => 'production_id',
  105. 'type' => 'integer',
  106. 'required' => true ) ) );
  107. $FunctionList['current_wish_list'] = array( 'name' => 'current_wish_list',
  108. 'operation_types' => array( 'read' ),
  109. 'call_method' => array( 'class' => 'eZShopFunctionCollection',
  110. 'method' => 'fetchCurrentWishList' ),
  111. 'parameter_type' => 'standard',
  112. 'parameters' => array() );
  113. $FunctionList['order'] = array( 'name' => 'order',
  114. 'operation_types' => array( 'read' ),
  115. 'call_method' => array( 'class' => 'eZShopFunctionCollection',
  116. 'method' => 'fetchOrder' ),
  117. 'parameter_type' => 'standard',
  118. 'parameters' => array( array( 'name' => 'order_id',
  119. 'type' => 'integer',
  120. 'required' => true ) ) );
  121. $FunctionList['order_status_history_count'] = array( 'name' => 'order_status_history_count',
  122. 'operation_types' => array( 'read' ),
  123. 'call_method' => array( 'class' => 'eZShopFunctionCollection',
  124. 'method' => 'fetchOrderStatusHistoryCount' ),
  125. 'parameter_type' => 'standard',
  126. 'parameters' => array( array( 'name' => 'order_id',
  127. 'type' => 'integer',
  128. 'required' => true ) ) );
  129. $FunctionList['order_status_history'] = array( 'name' => 'order_status_history',
  130. 'operation_types' => array( 'read' ),
  131. 'call_method' => array( 'class' => 'eZShopFunctionCollection',
  132. 'method' => 'fetchOrderStatusHistory' ),
  133. 'parameter_type' => 'standard',
  134. 'parameters' => array( array( 'name' => 'order_id',
  135. 'type' => 'integer',
  136. 'required' => true ) ) );
  137. $FunctionList['currency_list'] = array( 'name' => 'currency_list',
  138. 'operation_types' => array( 'read' ),
  139. 'call_method' => array( 'class' => 'eZShopFunctionCollection',
  140. 'method' => 'fetchCurrencyList' ),
  141. 'parameter_type' => 'standard',
  142. 'parameters' => array( array( 'name' => 'status',
  143. 'type' => 'integer,string',
  144. 'required' => false ) ) );
  145. $FunctionList['currency'] = array( 'name' => 'currency',
  146. 'operation_types' => array( 'read' ),
  147. 'call_method' => array( 'class' => 'eZShopFunctionCollection',
  148. 'method' => 'fetchCurrency' ),
  149. 'parameter_type' => 'standard',
  150. 'parameters' => array( array( 'name' => 'code',
  151. 'type' => 'string',
  152. 'required' => true ) ) );
  153. $FunctionList['preferred_currency_code'] = array( 'name' => 'preferred_currency_code',
  154. 'operation_types' => array( 'read' ),
  155. 'call_method' => array( 'class' => 'eZShopFunctionCollection',
  156. 'method' => 'fetchPreferredCurrencyCode' ),
  157. 'parameter_type' => 'standard',
  158. 'parameters' => array( ) );
  159. $FunctionList['user_country'] = array( 'name' => 'user_country',
  160. 'operation_types' => array( 'read' ),
  161. 'call_method' => array( 'class' => 'eZShopFunctionCollection',
  162. 'method' => 'fetchUserCountry' ),
  163. 'parameter_type' => 'standard',
  164. 'parameters' => array( ) );
  165. $FunctionList['product_category_list'] = array( 'name' => 'product_category_list',
  166. 'operation_types' => array( 'read' ),
  167. 'call_method' => array( 'class' => 'eZShopFunctionCollection',
  168. 'method' => 'fetchProductCategoryList' ),
  169. 'parameter_type' => 'standard',
  170. 'parameters' => array( ) );
  171. $FunctionList['product_category'] = array( 'name' => 'product_category',
  172. 'operation_types' => array( 'read' ),
  173. 'call_method' => array( 'class' => 'eZShopFunctionCollection',
  174. 'method' => 'fetchProductCategory' ),
  175. 'parameter_type' => 'standard',
  176. 'parameters' => array( array( 'name' => 'category_id',
  177. 'type' => 'integer,string',
  178. 'required' => true ) ) );
  179. ?>