本文整理匯總了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);
}