/** * 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); }
/** * 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; }
/** * 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; }
/** * 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; }