本文整理匯總了PHP中Json::usage方法的典型用法代碼示例。如果您正苦於以下問題:PHP Json::usage方法的具體用法?PHP Json::usage怎麽用?PHP Json::usage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Json
的用法示例。
在下文中一共展示了Json::usage方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: exit
<?php
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}
$plugin_info = array('pi_name' => 'JSON', 'pi_version' => '1.0.2', 'pi_author' => 'Rob Sanchez', 'pi_author_url' => 'http://barrettnewton.com/', 'pi_description' => 'Output ExpressionEngine data in JSON format.', 'pi_usage' => Json::usage());
class Json
{
public $return_data = '';
public $entries;
public $entries_entry_ids;
public $entries_custom_fields;
protected $entries_matrix_rows;
protected $entries_matrix_cols;
protected $entries_relationship_data;
public function Json()
{
$this->EE = get_instance();
}
protected function entries_initialize()
{
$this->entries = array();
$this->entries_entry_ids = array();
$this->entries_custom_fields = array();
$this->entries_matrix_rows = NULL;
$this->entries_relationship_data = NULL;
//$this->entries_matrix_cols = NULL;
}
public function entries()
{
$this->entries_initialize();