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