public function __construct($View = null, $settings = array()) { if (($webroot = Configure::read('Asset.webroot')) !== null) { $this->settings['webroot'] = $webroot; } parent::__construct($View, $settings); }
public function __construct($View, $options = array()) { if (isset($options['counter'])) { $this->counter = $options['counter']; } parent::__construct($View, $options); }
/** * construct method * * @param array $options array() * @return void * @access private */ public function __construct($options = array()) { if (App::import('Helper', 'MiAsset.Asset')) { $this->helpers[] = 'MiAsset.Asset'; } parent::__construct(); }
/** * Default Constructor * * @param View $View The View this helper is being attached to. * @param array $settings Configuration settings for the helper. */ public function __construct(View $View, $settings = array()) { parent::__construct($View, $settings); //$this->DataType = ClassRegistry::init('DataTypes.DataType'); $this->DataTypeTemplate = ClassRegistry::init('DataTypes.DataTypeTemplate'); $this->DataTypeTemplatesPlugin = ClassRegistry::init('DataTypes.DataTypeTemplatesPlugin'); }
/** * Constructor */ public function __construct(View $View, $settings = array()) { $themeConfig = CroogoTheme::config($View->theme); $themeSettings = $themeConfig['settings']; $settings = Hash::merge($themeSettings, $settings); parent::__construct($View, $settings); }
/** * Default Constructor * * @param View $View The View this helper is being attached to. * @param array $settings Configuration settings for the helper. */ public function __construct(View $View, $settings = array()) { parent::__construct($View, $settings); $this->UserRole = ClassRegistry::init('UserRoles.UserRole'); $this->Role = ClassRegistry::init('Roles.Role'); $this->isUsableOptions = array('1' => __d('user_roles', 'Use'), '0' => __d('user_roles', 'Not use')); $this->isPermittedOptions = array('1' => __d('user_roles', 'Permitted'), '0' => __d('user_roles', 'Not permitted')); }
public function __construct(View $View, $settings = array()) { parent::__construct($View, $settings); $this->settings = $this->defaultSettings; if (is_array($settings)) { $this->settings = array_merge($this->defaultSettings, $settings); } }
/** * Construct * * @param object $view * @param array $settings * @access public * @since 2.0 */ public function __construct(View $view, $settings = array()) { parent::__construct($view, $settings); foreach ($view->viewVars as $key => $value) { if (strpos($key, 'FilterResults') > -1 && is_object($value)) { $this->_component = $value; } } $this->_options = array_merge($this->_options, $settings); }
public function __construct(View $View, $settings = array()) { parent::__construct($View, $settings); if (is_array($settings) && isset($settings['userModel'])) { $this->userModel = $settings['userModel']; } if (is_array($settings) && isset($settings['primaryKey'])) { $this->primaryKey = $settings['primaryKey']; } }
/** * Constructor */ public function __construct(View $View, $settings = array()) { if (isset($View->viewVars['themeSettings'])) { $themeSettings = $View->viewVars['themeSettings']; $settings = Hash::merge(array('iconDefaults' => $themeSettings['iconDefaults'], 'icons' => $themeSettings['icons']), $settings); } else { $croogoTheme = new CroogoTheme(); $themeData = $croogoTheme->getData(); $themeSettings = $themeData['settings']; $settings = Hash::merge($themeSettings, $settings); } parent::__construct($View, $settings); }
/** * Copies the validationErrors variable from the View object into this instance * * @param View $View The View this helper is being attached to. * @param array $settings Configuration settings for the helper. */ public function __construct(View $View, $settings = array()) { parent::__construct($View, $settings); $this->View = $View; }
/** * Default Constructor * * @param View $View The View this helper is being attached to. * @param array $settings Configuration settings for the helper. */ public function __construct(View $View, $settings = array()) { parent::__construct($View, $settings); $this->Html = $this->_View->loadHelper('Bs3Helpers.Bs3Html'); }
function __construct($config = null) { if (!empty($config)) { foreach ($config as $key => $val) { $this->{$key} = $val; } } parent::__construct(); }
function __construct() { $this->_fieldsetOpen = false; parent::__construct(); }
public function __construct(\View $View, $settings = array()) { parent::__construct($View, $settings); }
/** * Constructor * * @param View $View View * @param array $settings settings * @return void */ public function __construct(View $View, $settings = array()) { $this->__mapper = $this->__parseLangHeaders(); $this->__langCode = $this->__findLangCode(); $this->__countryCode = $this->__findCountryCode(); parent::__construct($View, $settings); }
/** * Default Constructor * * @param View $View The View this helper is being attached to. * @param array $settings Configuration settings for the helper. */ public function __construct(View $View, $settings = array()) { parent::__construct($View, $settings); $this->User = ClassRegistry::init('Users.User'); $this->UsersLanguage = ClassRegistry::init('Users.UsersLanguage'); }