當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。