本文整理匯總了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();
}
示例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');
}
示例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();
}
}
示例4: __construct
public function __construct($api_service)
{
parent::__construct($api_service);
}
示例5: __construct
public function __construct($api_service)
{
$this->replar = array();
parent::__construct($api_service);
}