Example #1
0
 /**
  * Initializes the Order base service controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Order_Base_Service');
     $manager = MShop_Order_Manager_Factory::createManager($context);
     $baseManager = $manager->getSubManager('base');
     $this->_manager = $baseManager->getSubManager('service');
 }
Example #2
0
 /**
  * Initializes the product tag type controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Product_Tag_Type');
     $manager = MShop_Product_Manager_Factory::createManager($context);
     $tagManager = $manager->getSubManager('tag');
     $this->_manager = $tagManager->getSubManager('type');
 }
Example #3
0
 /**
  * Initializes the product stock warehouse controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Product_Stock_Warehouse');
     $manager = MShop_Product_Manager_Factory::createManager($context);
     $stockManager = $manager->getSubManager('stock');
     $this->_manager = $stockManager->getSubManager('warehouse');
 }
Example #4
0
 /**
  * Initializes the product list type controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Attribute_List_Type');
     $manager = MShop_Attribute_Manager_Factory::createManager($context);
     $listManager = $manager->getSubManager('list');
     $this->_manager = $listManager->getSubManager('type');
 }
Example #5
0
 /**
  * Initializes the product list controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Product_List');
     $manager = MShop_Product_Manager_Factory::createManager($context);
     $this->_manager = $manager->getSubManager('list');
     $this->_context = $context;
 }
Example #6
0
 /**
  * Initializes the order base service attribute controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Order_Base_Product_Attribute');
     $manager = MShop_Order_Manager_Factory::createManager($context);
     $baseManager = $manager->getSubManager('base');
     $productManager = $baseManager->getSubManager('product');
     $this->_manager = $productManager->getSubManager('attribute');
 }
Example #7
0
 /**
  * Initializes the service controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Service');
 }
Example #8
0
 /**
  * Initializes the service type controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Service_Type');
     $manager = MShop_Service_Manager_Factory::createManager($context);
     $this->_manager = $manager->getSubManager('type');
 }
Example #9
0
 /**
  * Initializes the order base service attribute controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Order_Base_Service_Attribute');
 }
Example #10
0
 /**
  * Initializes the locale controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Locale');
     $this->_manager = MShop_Locale_Manager_Factory::createManager($context);
 }
Example #11
0
 /**
  * Initializes the catalog list controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Catalog_List');
 }
Example #12
0
 /**
  * Initializes the Order base product controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Order_Base_Product');
 }
Example #13
0
 /**
  * Initializes the product tag type controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Product_Tag_Type');
 }
Example #14
0
 /**
  * Returns the service description of the class.
  * It describes the class methods and its parameters including their types
  *
  * @return array Associative list of class/method names, their parameters and types
  */
 public function getServiceDescription()
 {
     $desc = parent::getServiceDescription();
     $catdesc = array('Catalog.getTree' => array("parameters" => array(array("type" => "string", "name" => "site", "optional" => false), array("type" => "array", "name" => "items", "optional" => false)), "returns" => "array"), 'Catalog.insertItems' => array("parameters" => array(array("type" => "string", "name" => "site", "optional" => false), array("type" => "array", "name" => "items", "optional" => false), array("type" => "string", "name" => "parentid", "optional" => true), array("type" => "string", "name" => "refid", "optional" => true)), "returns" => "array"), 'Catalog.moveItems' => array("parameters" => array(array("type" => "string", "name" => "site", "optional" => false), array("type" => "array", "name" => "items", "optional" => false), array("type" => "string", "name" => "oldparentid", "optional" => false), array("type" => "string", "name" => "newparentid", "optional" => false), array("type" => "string", "name" => "refid", "optional" => true)), "returns" => "array"));
     return array_merge($desc, $catdesc);
 }
Example #15
0
 /**
  * Initializes the media list type controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Media_List_Type');
 }
Example #16
0
 /**
  * Returns the service description of the class.
  * It describes the class methods and its parameters including their types
  *
  * @return array Associative list of class/method names, their parameters and types
  */
 public function getServiceDescription()
 {
     $smd = parent::getServiceDescription();
     $smd['Media.uploadItem'] = array("parameters" => array(array("type" => "string", "name" => "site", "optional" => false), array("type" => "string", "name" => "domain", "optional" => false)), "returns" => "array");
     return $smd;
 }
Example #17
0
 /**
  * Initializes the customer address controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Customer_Address');
 }
Example #18
0
 /**
  * Initializes the job controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Admin_Job');
 }
Example #19
0
 /**
  * Returns the service description of the class.
  * It describes the class methods and its parameters including their types
  *
  * @return array Associative list of class/method names, their parameters and types
  */
 public function getServiceDescription()
 {
     $list = parent::getServiceDescription();
     $list['Coupon_Code.uploadFile'] = array("parameters" => array(array("type" => "string", "name" => "site", "optional" => false), array("type" => "string", "name" => "couponid", "optional" => false)), "returns" => "array");
     $list['Coupon_Code.importFile'] = array("parameters" => array(array("type" => "string", "name" => "site", "optional" => false), array("type" => "string", "name" => "couponid", "optional" => false), array("type" => "array", "name" => "items", "optional" => false)), "returns" => "array");
     return $list;
 }
Example #20
0
 /**
  * Returns the service description of the class.
  * It describes the class methods and its parameters including their types
  *
  * @return array Associative list of class/method names, their parameters and types
  */
 public function getServiceDescription()
 {
     $list = parent::getServiceDescription();
     $list['Admin_Cache.flush'] = array("parameters" => array(array("type" => "string", "name" => "site", "optional" => false)), "returns" => "array");
     return $list;
 }
Example #21
0
 /**
  * Initializes the language controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Locale_Language');
 }
Example #22
0
 /**
  * Initializes the product stock warehouse controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Product_Stock_Warehouse');
 }
Example #23
0
 /**
  * Initializes the product list controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Attribute_List');
 }
Example #24
0
 /**
  * Initializes the plugin controller.
  *
  * @param MShop_Context_Item_Interface $context MShop context object
  */
 public function __construct(MShop_Context_Item_Interface $context)
 {
     parent::__construct($context, 'Plugin');
     $this->_manager = MShop_Plugin_Manager_Factory::createManager($context);
     $this->_context = $context;
 }