本文整理汇总了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);
}
}
示例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';
}
}
示例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');
}
示例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);
}
示例6:
function __construct(&$parent)
{
parent::__construct($parent);
}
示例7: __construct
public function __construct($env = NULL, $process_params = true)
{
parent::__construct($env, $process_params);
}
示例8: __construct
public function __construct(&$parent, $env = NULL, $process_params = true)
{
parent::__construct($parent, $env, $process_params);
$this->_dependencies = array();
}
示例9: array
/**
* Default Constructor
*
* @param array $config options
* @access public
*/
function __construct($config = array())
{
parent::__construct($config);
}
示例10:
function __construct(&$parent, $env = NULL, $process_params = true)
{
$this->dsParamFILTERS = $this->__getParamFilters();
parent::__construct($parent, $env, $process_params);
}
示例11: SphinxClient
function __construct($config)
{
parent::__construct($config);
$this->sphinx = new SphinxClient();
$this->sphinx->SetServer($this->config['host'], $this->config['port']);
}
示例12: array
function __construct(&$parent, $env = NULL, $process_params = true)
{
parent::__construct($parent, $env, $process_params);
$this->_dependencies = array('$ds-forum-discussions');
}
示例13: __construct
/**
* __construct function.
*
* @access public
* @param mixed $config
* @return void
*/
public function __construct($config)
{
parent::__construct($config);
$this->_http =& new HttpSocket();
}
示例14: __construct
public function __construct(&$parent, $env = NULL, $process_params = true)
{
parent::__construct($parent, $env, $process_params);
$this->_dependencies = array('$ds-dashboard-projects');
}
示例15: __construct
public function __construct(array $env = null, $process_params = true)
{
parent::__construct($env, $process_params);
}