本文整理汇总了PHP中JSON::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP JSON::__construct方法的具体用法?PHP JSON::__construct怎么用?PHP JSON::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSON
的用法示例。
在下文中一共展示了JSON::__construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor
*
* @access public
*/
public function __construct()
{
global $action;
parent::__construct();
$this->searchObject = SearchObjectFactory::initSearchObject('PCI');
$this->filterField = 'creationdate';
$this->dateFacet = 'creationdate';
}
示例2: search
public function search($term, array $config)
{
if (is_array($config)) {
$this->config = array_merge($this->config, $config);
}
$this->config["term"] = $term;
$url = $this->search . http_build_query($this->config);
parent::__construct($url);
}
示例3: __construct
/**
* Constructor.
*
* @access public
*/
public function __construct()
{
parent::__construct();
$this->_searchObject = SearchObjectFactory::initSearchObject();
// Load the desired facet information...
$config = getExtraConfigArray('facets');
if (isset($config['MapFacets']['location'])) {
$this->_locationFacet = is_array($config['MapFacets']['location']) ? $config['MapFacets']['location'] : array($config['MapFacets']['location']);
}
}
示例4: __construct
/**
* Constructor.
*
* @access public
*/
public function __construct()
{
global $action;
parent::__construct();
if (isset($_REQUEST['collection'])) {
$this->_searchObject = SearchObjectFactory::initSearchObject('SolrCollection');
$action = isset($_REQUEST['collectionAction']) ? $_REQUEST['collectionAction'] : 'Home';
} else {
$this->_searchObject = SearchObjectFactory::initSearchObject();
}
// Load the desired facet information...
$config = getExtraConfigArray('facets');
if (isset($config['SpecialFacets']['dateVis'])) {
$this->_dateFacets = is_array($config['SpecialFacets']['dateVis']) ? $config['SpecialFacets']['dateVis'] : array($config['SpecialFacets']['dateVis']);
}
}
示例5: __construct
/**
* Constructor
*
* @access public
*/
public function __construct()
{
global $action;
parent::__construct();
if (isset($_REQUEST['collection'])) {
$this->searchObject = SearchObjectFactory::initSearchObject('SolrCollection');
$action = isset($_REQUEST['collectionAction']) ? $_REQUEST['collectionAction'] : 'Home';
} else {
$this->searchObject = SearchObjectFactory::initSearchObject();
}
// Load the desired facet information...
$config = getExtraConfigArray('facets');
if (isset($config['SpecialFacets']['dateRangeVis'])) {
list($this->filterField, $this->dateFacet) = explode(':', $config['SpecialFacets']['dateRangeVis'], 2);
}
}
示例6: query
public function query($function, $params)
{
$params = '.json?' . utf8_encode(http_build_query($params));
$apiCall = $this->api_url . $function . $params;
parent::__construct($apiCall);
}
示例7: __construct
/**
* Constructor.
*
* @access public
*/
public function __construct()
{
parent::__construct();
}
示例8: __construct
/**
* Constructor.
*
* @access public
*/
public function __construct()
{
parent::__construct();
$this->_searchObject = SearchObjectFactory::initSearchObject();
}
示例9: __construct
public function __construct($result, $entity, $error)
{
parent::__construct(array('data' => array('result' => $result, 'entity' => $entity, 'error' => $error)));
}
示例10: __construct
public function __construct($array = null)
{
parent::__construct($array);
$this->set_success(false);
}
示例11: __construct
public function __construct($result, array $list, PagingUrl $pagingUrl, $error)
{
parent::__construct(array('data' => array('result' => $result, 'list' => $list, 'paging' => array('cursor' => array('prev' => $pagingUrl->getPrev(), 'next' => $pagingUrl->getNext())), 'error' => $error)));
}