当前位置: 首页>>代码示例>>PHP>>正文


PHP OnApp::getList方法代码示例

本文整理汇总了PHP中OnApp::getList方法的典型用法代码示例。如果您正苦于以下问题:PHP OnApp::getList方法的具体用法?PHP OnApp::getList怎么用?PHP OnApp::getList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在OnApp的用法示例。


在下文中一共展示了OnApp::getList方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getList

 /**
  * Sends an API request to get the Objects. After requesting,
  * unserializes the received response into the array of Objects
  *
  * @param integer $cdn_resource_id CDN Resource id
  *
  * @return mixed an array of Object instances on success. Otherwise false
  * @access public
  */
 public function getList($cdn_resource_id = null, $url_args = null)
 {
     if (is_null($cdn_resource_id) && !is_null($this->_id)) {
         $cdn_resource_id = $this->_id;
     }
     if (!is_null($cdn_resource_id)) {
         $this->_id = $cdn_resource_id;
         return parent::getList();
     } else {
         $this->logger->error('getList: argument $cdn_resource_id not set.', __FILE__, __LINE__);
     }
 }
开发者ID:jcomack,项目名称:OnApp,代码行数:21,代码来源:Advanced.php

示例2: getList

 /**
  * Sends an API request to get the Objects. After requesting,
  * unserializes the received response into the array of Objects
  *
  * @param array $url_args [start, end, type, resource_type, resources[] ]
  *
  * @return mixed an array of Object instances on success. Otherwise false
  * @access public
  */
 public function getList($url_args = null)
 {
     return parent::getList(null, $url_args);
 }
开发者ID:prado1991,项目名称:OnApp-PHP-Wrapper-External,代码行数:13,代码来源:Bandwidth.php

示例3: getList

 /**
  * Sends an API request to get the Objects. After requesting,
  * unserializes the received response into the array of Objects
  *
  * @param integer $user_id User ID
  *
  * @return mixed an array of Object instances on success. Otherwise false
  * @access public
  */
 function getList($user_id = null)
 {
     if (is_null($user_id) && !is_null($this->_user_id)) {
         $user_id = $this->_user_id;
     }
     if (!is_null($user_id)) {
         $this->_user_id = $user_id;
         return parent::getList();
     } else {
         $this->logger->error('getList: argument _user_id not set.', __FILE__, __LINE__);
     }
 }
开发者ID:jcomack,项目名称:OnApp,代码行数:21,代码来源:WhiteList.php

示例4: getList

 /**
  * Sends an API request to get the Objects. After requesting,
  * unserializes the received response into the array of Objects
  *
  * @param int|null $user_id
  *
  * @return array|bool
  */
 function getList($user_id = null, $url_args = null)
 {
     //todo rewrite to use parent method
     if (is_null($user_id)) {
         return parent::getList();
     } else {
         $this->activate(ONAPP_ACTIVATE_GETLIST);
         $this->logger->add('getList: Get Transaction list.');
         $this->_user_id = $user_id;
         $this->setAPIResource($this->getResource(ONAPP_ACTIVATE_GETLIST_USER));
         $response = $this->sendRequest(ONAPP_REQUEST_METHOD_GET);
         $result = $this->castStringToClass($response);
         if (!empty($response['errors'])) {
             //todo test this stuff
             //$this->errors = $result->errors;
             return false;
         }
         if (!is_array($result) && !is_null($result)) {
             $result = array($result);
         }
         return $result;
     }
 }
开发者ID:jcomack,项目名称:OnApp,代码行数:31,代码来源:VirtualMachine.php

示例5: getList

 /**
  * Sends an API request to get the Objects. After requesting,
  * unserializes the received response into the array of Objects
  *
  * @param integer $vm_id VM ID
  *
  * @return mixed an array of Object instances on success. Otherwise false
  * @access public
  */
 function getList($vm_id = null, $url_args = null)
 {
     if ($vm_id) {
         $this->_virtual_machine_id = $vm_id;
     }
     return parent::getList();
 }
开发者ID:jcomack,项目名称:OnApp,代码行数:16,代码来源:Disk.php

示例6: getList

 /**
  * Sends an API request to get the Objects. After requesting,
  * unserializes the received response into the array of Objects
  *
  * @param integer $virtual_machine_id   Virtual Machine id
  * @param integer $network_interface_id Network Interface id
  *
  * @return mixed an array of Object instances on success. Otherwise false
  * @access public
  */
 function getList($virtual_machine_id = null, $network_interface_id = null, $url_args = '')
 {
     if (is_null($virtual_machine_id) && !is_null($this->_virtual_machine_id)) {
         $virtual_machine_id = $this->_virtual_machine_id;
     }
     if (!is_null($virtual_machine_id)) {
         $this->_virtual_machine_id = $virtual_machine_id;
     } else {
         $this->logger->error('getList: argument _virtual_machine_id not set.', __FILE__, __LINE__);
     }
     if (is_null($network_interface_id) && !is_null($this->_network_interface_id)) {
         $network_interface_id = $this->_network_interface_id;
     }
     if (!is_null($network_interface_id)) {
         $this->_network_interface_id = $network_interface_id;
     } else {
         $this->logger->error('getList: argument _network_interface_id not set.', __FILE__, __LINE__);
     }
     return parent::getList(null, $url_args);
 }
开发者ID:jcomack,项目名称:OnApp,代码行数:30,代码来源:Usage.php

示例7: getList

 /**
  * Sends an API request to get the Objects. After requesting,
  * unserializes the received response into the array of Objects
  *
  * @param integer $virtual_machine_id Virtual Machine id
  *
  * @return mixed an array of Object instances on success. Otherwise false
  * @access public
  */
 function getList($virtual_machine_id = null, $url_args = null)
 {
     if (is_null($virtual_machine_id) && !is_null($this->_virtual_machine_id)) {
         $virtual_machine_id = $this->_virtual_machine_id;
     }
     if (!is_null($virtual_machine_id)) {
         $this->_virtual_machine_id = $virtual_machine_id;
         return parent::getList();
     } else {
         $this->logger->error('getList: argument _virtual_machine_id not set.', __FILE__, __LINE__);
     }
 }
开发者ID:jcomack,项目名称:OnApp,代码行数:21,代码来源:CpuUsage.php

示例8: getList

 /**
  * Sends an API request to get the Objects. After requesting,
  * unserializes the received response into the array of Objects
  *
  * @param integer $virtual_machine_id Virtual Machine id
  *
  * @return mixed an array of Object instances on success. Otherwise false
  * @access public
  */
 function getList($billing_plan_id = null, $url_args = null)
 {
     if (is_null($billing_plan_id) && !is_null($this->_billing_plan_id)) {
         $billing_plan_id = $this->_billing_plan_id;
     }
     if (!is_null($billing_plan_id)) {
         $this->_billing_plan_id = $billing_plan_id;
         return parent::getList();
     } else {
         $this->logger->error('getList: argument _billing_plan_id not set.', __FILE__, __LINE__);
     }
 }
开发者ID:jcomack,项目名称:OnApp,代码行数:21,代码来源:BaseResource.php

示例9: getList

 /**
  * Sends an API request to get the Objects. After requesting,
  * unserializes the received response into the array of Objects
  *
  * @param int $page
  *
  * @return the array of Object instances
  */
 function getList($page = 1)
 {
     $data = array('root' => 'page', 'data' => $page);
     return parent::getList($data);
 }
开发者ID:prado1991,项目名称:OnApp-PHP-Wrapper-External,代码行数:13,代码来源:Transaction.php

示例10: getList

 /**
  * Sends an API request to get the Objects. After requesting,
  * unserializes the received response into the array of Objects
  *
  * @param integer $dns_zone_id Virtual Machine id
  *
  * @return mixed an array of Object instances on success. Otherwise false
  * @access public
  */
 function getList($dns_zone_id = null, $url_args = null)
 {
     if (is_null($dns_zone_id) && !is_null($this->_dns_zone_id)) {
         $dns_zone_id = $this->_dns_zone_id;
     }
     if (is_null($dns_zone_id) && isset($this->_obj) && !is_null($this->_obj->_dns_zone_id)) {
         $dns_zone_id = $this->_obj->_dns_zone_id;
     }
     if (!is_null($dns_zone_id)) {
         $this->_dns_zone_id = $dns_zone_id;
         return parent::getList();
     } else {
         $this->logger->error('getList: argument _dns_zone_id not set.', __FILE__, __LINE__);
     }
 }
开发者ID:prado1991,项目名称:OnApp-PHP-Wrapper-External,代码行数:24,代码来源:Record.php


注:本文中的OnApp::getList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。