本文整理汇总了PHP中FormHelper::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP FormHelper::__construct方法的具体用法?PHP FormHelper::__construct怎么用?PHP FormHelper::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormHelper
的用法示例。
在下文中一共展示了FormHelper::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($View = null, $settings = array())
{
if (($webroot = Configure::read('Asset.webroot')) !== null) {
$this->settings['webroot'] = $webroot;
}
parent::__construct($View, $settings);
}
示例2: __construct
public function __construct($View, $options = array())
{
if (isset($options['counter'])) {
$this->counter = $options['counter'];
}
parent::__construct($View, $options);
}
示例3: __construct
/**
* 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();
}
示例4: __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');
}
示例5: __construct
/**
* 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);
}
示例6: __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->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'));
}
示例7: __construct
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);
}
}
示例8: __construct
/**
* 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);
}
示例9: __construct
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'];
}
}
示例10: __construct
/**
* 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);
}
示例11: __construct
/**
* 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;
}
示例12: __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->Html = $this->_View->loadHelper('Bs3Helpers.Bs3Html');
}
示例13: foreach
function __construct($config = null)
{
if (!empty($config)) {
foreach ($config as $key => $val) {
$this->{$key} = $val;
}
}
parent::__construct();
}
示例14:
function __construct()
{
$this->_fieldsetOpen = false;
parent::__construct();
}
示例15: __construct
public function __construct(\View $View, $settings = array())
{
parent::__construct($View, $settings);
}