当前位置: 首页>>代码示例>>PHP>>正文


PHP JSON::__construct方法代码示例

本文整理汇总了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';
 }
开发者ID:bharatm,项目名称:NDL-VuFind,代码行数:13,代码来源:JSON_DateRangeVisPCI.php

示例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);
 }
开发者ID:Acoustics,项目名称:jbLibrary,代码行数:9,代码来源:iTunes.php

示例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']);
     }
 }
开发者ID:bharatm,项目名称:NDL-VuFind,代码行数:15,代码来源:JSON_GoogleMap.php

示例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']);
     }
 }
开发者ID:bharatm,项目名称:NDL-VuFind,代码行数:21,代码来源:JSON_Vis.php

示例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);
     }
 }
开发者ID:bharatm,项目名称:NDL-VuFind,代码行数:21,代码来源:JSON_DateRangeVis.php

示例6: query

 public function query($function, $params)
 {
     $params = '.json?' . utf8_encode(http_build_query($params));
     $apiCall = $this->api_url . $function . $params;
     parent::__construct($apiCall);
 }
开发者ID:Acoustics,项目名称:jbLibrary,代码行数:6,代码来源:base.php

示例7: __construct

 /**
  * Constructor.
  *
  * @access public
  */
 public function __construct()
 {
     parent::__construct();
 }
开发者ID:bharatm,项目名称:NDL-VuFind,代码行数:9,代码来源:JSON_DeleteUser.php

示例8: __construct

 /**
  * Constructor.
  *
  * @access public
  */
 public function __construct()
 {
     parent::__construct();
     $this->_searchObject = SearchObjectFactory::initSearchObject();
 }
开发者ID:bharatm,项目名称:NDL-VuFind,代码行数:10,代码来源:JSON_Browse.php

示例9: __construct

 public function __construct($result, $entity, $error)
 {
     parent::__construct(array('data' => array('result' => $result, 'entity' => $entity, 'error' => $error)));
 }
开发者ID:aainc,项目名称:Behoimi,代码行数:4,代码来源:EntityResult.php

示例10: __construct

 public function __construct($array = null)
 {
     parent::__construct($array);
     $this->set_success(false);
 }
开发者ID:zentefi,项目名称:zentefi-laravel,代码行数:5,代码来源:AjaxFormResponse.php

示例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)));
 }
开发者ID:aainc,项目名称:Behoimi,代码行数:4,代码来源:ListResult.php


注:本文中的JSON::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。