本文整理汇总了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;未经允许,请勿转载。 |
请发表评论