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


PHP Datasource::__construct方法代码示例

本文整理汇总了PHP中Datasource::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Datasource::__construct方法的具体用法?PHP Datasource::__construct怎么用?PHP Datasource::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Datasource的用法示例。


在下文中一共展示了Datasource::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Initialise data source
  */
 public function __construct(&$parent, $env = NULL, $process_params = true)
 {
     parent::__construct($parent, $env, $process_params);
     $this->dsParamLANG = array();
     // Load language codes from configuration
     $languages = Symphony::Configuration()->get('datetime');
     foreach ($languages as $name => $codes) {
         $this->dsParamLANG[] = explode(', ', $codes);
     }
 }
开发者ID:brendo,项目名称:datetime,代码行数:13,代码来源:data.datetime.php

示例2: __construct

 /**
  *
  * Class constructor
  * @param object $parent
  * @param array $env
  * @param boolean $process_params
  */
 public function __construct(array $env = null, $process_params = true)
 {
     parent::__construct($env, $process_params);
     // detect if multilangual field AND language redirect is enabled
     $this->isMultiLangual = Symphony::ExtensionManager()->fetchStatus('page_lhandles') == EXTENSION_ENABLED && Symphony::ExtensionManager()->fetchStatus('language_redirect') == EXTENSION_ENABLED;
     // add a ref to the Language redirect
     if ($this->isMultiLangual) {
         require_once EXTENSIONS . '/language_redirect/lib/class.languageredirect.php';
     }
 }
开发者ID:strangerpixel,项目名称:breadcrumb,代码行数:17,代码来源:data.breadcrumb.php

示例3: __construct

 public function __construct(&$parent, $env = NULL, $process_params = true)
 {
     if (isset($_GET['q'])) {
         if (ctype_digit($_GET['q'])) {
             $this->dsParamFILTERS['id'] = '{$url-q}';
         } else {
             $this->dsParamFILTERS['37'] = 'regexp:{$url-q}';
         }
     }
     parent::__construct($parent, $env, $process_params);
     $this->_dependencies = array('$ds-project-project');
 }
开发者ID:shobhalakshminarayana,项目名称:Bugaroo,代码行数:12,代码来源:data.project_project_issues_filtered.php

示例4: __construct

 public function __construct(&$parent, $env = NULL, $process_params = true)
 {
     parent::__construct($parent, $env, $process_params);
     $this->_dependencies = array('$ds-project-project-contributors', '$ds-index-anonymous');
 }
开发者ID:shobhalakshminarayana,项目名称:Bugaroo,代码行数:5,代码来源:data.project_project_contributors_assignees.php

示例5: TranslationManager

 function __construct(&$parent, $env = NULL, $process_params = true)
 {
     $this->dsParamFILTERS = $this->__getParamFilters();
     $this->_tm = new TranslationManager($parent);
     parent::__construct($parent, $env, $process_params);
 }
开发者ID:bauhouse,项目名称:sym-extensions,代码行数:6,代码来源:data.xliff.php

示例6:

 function __construct(&$parent)
 {
     parent::__construct($parent);
 }
开发者ID:bauhouse,项目名称:sym-extensions,代码行数:4,代码来源:data.nested_cats.php

示例7: __construct

 public function __construct($env = NULL, $process_params = true)
 {
     parent::__construct($env, $process_params);
 }
开发者ID:symphonists,项目名称:search_index,代码行数:4,代码来源:data.search_suggestions.php

示例8: __construct

 public function __construct(&$parent, $env = NULL, $process_params = true)
 {
     parent::__construct($parent, $env, $process_params);
     $this->_dependencies = array();
 }
开发者ID:nick-ryall,项目名称:microdata-utilities,代码行数:5,代码来源:data.read_places.php

示例9: array

 /**
  * Default Constructor
  *
  * @param array $config options
  * @access public
  */
 function __construct($config = array())
 {
     parent::__construct($config);
 }
开发者ID:kaz29,项目名称:datasources,代码行数:10,代码来源:xmlrpc_source.php

示例10:

 function __construct(&$parent, $env = NULL, $process_params = true)
 {
     $this->dsParamFILTERS = $this->__getParamFilters();
     parent::__construct($parent, $env, $process_params);
 }
开发者ID:bauhouse,项目名称:sym-extensions,代码行数:5,代码来源:data.gcse.php

示例11: SphinxClient

 function __construct($config)
 {
     parent::__construct($config);
     $this->sphinx = new SphinxClient();
     $this->sphinx->SetServer($this->config['host'], $this->config['port']);
 }
开发者ID:namelessnotion,项目名称:sphinx-cakephp-plugin,代码行数:6,代码来源:sphinx_source.php

示例12: array

 function __construct(&$parent, $env = NULL, $process_params = true)
 {
     parent::__construct($parent, $env, $process_params);
     $this->_dependencies = array('$ds-forum-discussions');
 }
开发者ID:bauhouse,项目名称:sym-forum-ensemble,代码行数:5,代码来源:data.forum_read_discussions.php

示例13: __construct

 /**
  * __construct function.
  * 
  * @access public
  * @param mixed $config
  * @return void
  */
 public function __construct($config)
 {
     parent::__construct($config);
     $this->_http =& new HttpSocket();
 }
开发者ID:ryan953,项目名称:JSON-API,代码行数:12,代码来源:json_source.php

示例14: __construct

 public function __construct(&$parent, $env = NULL, $process_params = true)
 {
     parent::__construct($parent, $env, $process_params);
     $this->_dependencies = array('$ds-dashboard-projects');
 }
开发者ID:ErisDS,项目名称:Bugaroo,代码行数:5,代码来源:data.dashboard_projects_issues.php

示例15: __construct

 public function __construct(array $env = null, $process_params = true)
 {
     parent::__construct($env, $process_params);
 }
开发者ID:siimsoni,项目名称:jit_image_manipulation,代码行数:4,代码来源:data.jit_image_manipulation_recipes.php


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