本文整理汇总了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);
}