本文整理汇总了PHP中TimeHelper::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP TimeHelper::__construct方法的具体用法?PHP TimeHelper::__construct怎么用?PHP TimeHelper::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TimeHelper
的用法示例。
在下文中一共展示了TimeHelper::__construct方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($settings = array())
{
if (App::import('Helper', 'MiAsset.Asset')) {
$this->helpers[] = 'MiAsset.Asset';
}
$this->settings = Set::merge($this->settings, $settings);
parent::__construct($settings);
}
示例2: __construct
public function __construct($View = null, $settings = array())
{
$settings = Set::merge(array('engine' => 'Tools.DatetimeLib'), $settings);
parent::__construct($View, $settings);
$i18n = Configure::read('Localization');
if (!empty($i18n['time_offset'])) {
$this->userOffset = (int) $i18n['time_offset'];
}
if (!empty($i18n['daylight_savings'])) {
$this->daylightSavings = (bool) $i18n['daylight_savings'];
}
//$this->Datetime = new DatetimeLib();
}
示例3: __construct
public function __construct($View = null, $config = array())
{
$defaults = array('engine' => 'Tools.TimeLib');
$config += $defaults;
parent::__construct($View, $config);
}
示例4: __construct
public function __construct($View = null, $config = [])
{
$defaults = ['engine' => 'Tools.TimeLib'];
$config += $defaults;
parent::__construct($View, $config);
}
示例5: __construct
public function __construct(View $View, $settings = array()) {
parent::__construct($View, $settings);
}