當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Api_Object_Core類代碼示例

本文整理匯總了PHP中Api_Object_Core的典型用法代碼示例。如果您正苦於以下問題:PHP Api_Object_Core類的具體用法?PHP Api_Object_Core怎麽用?PHP Api_Object_Core使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Api_Object_Core類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct($api_service)
 {
     $this->replar = array();
     parent::__construct($api_service);
     $this->action = $this->request['action'];
     $this->id = isset($this->request['id']) ? $this->request['id'] : FALSE;
     $this->vid = new viddlerevents();
 }
開發者ID:neumicro,項目名稱:Ushahidi_Web_Dev,代碼行數:8,代碼來源:MY_Viddler_Api_Object.php

示例2: __construct

 public function __construct($api_service)
 {
     parent::__construct($api_service);
     // Set the response tpye for the API service to JSON
     $api_service->set_response_type('json');
     // Instantitate API objects to be used
     $this->categories_api_object = new Categories_Api_Object($api_service);
     $this->incidents_api_object = new Incidents_Api_Object($api_service);
     // Set the response type for this instance to json
     $this->set_response_type('json');
 }
開發者ID:kjgarza,項目名稱:ushahidi,代碼行數:11,代碼來源:MY_Kml_Api_Object.php

示例3: __construct

 public function __construct($api_service)
 {
     parent::__construct($api_service);
     $this->abs_upload_url = url::site() . Kohana::config('upload.relative_directory', TRUE);
     // If Checkins aren't enabled, we want to essentially shut off this API library
     if (Kohana::config('settings.checkins') != 1) {
         // Say what is going on
         $this->set_ci_error_message(array("error" => $this->api_service->get_error_msg(010)));
         $this->show_response();
     }
 }
開發者ID:nanangsyaifudin,項目名稱:HAC-2012,代碼行數:11,代碼來源:MY_Checkin_Api_Object.php

示例4: __construct

 public function __construct($api_service)
 {
     parent::__construct($api_service);
 }
開發者ID:kjgarza,項目名稱:ushahidi,代碼行數:4,代碼來源:MY_Private_Func_Api_Object.php

示例5: __construct

 public function __construct($api_service)
 {
     $this->replar = array();
     parent::__construct($api_service);
 }
開發者ID:redspider,項目名稱:Ushahidi_Web,代碼行數:5,代碼來源:MY_System_Api_Object.php


注:本文中的Api_Object_Core類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。