当前位置: 首页>>代码示例>>PHP>>正文


PHP FormHelper::__construct方法代码示例

本文整理汇总了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);
 }
开发者ID:robksawyer,项目名称:grabitdown,代码行数:7,代码来源:FormExtHelper.php

示例2: __construct

 public function __construct($View, $options = array())
 {
     if (isset($options['counter'])) {
         $this->counter = $options['counter'];
     }
     parent::__construct($View, $options);
 }
开发者ID:piotr0beschel,项目名称:CakeUI,代码行数:7,代码来源:BootstrapFormHelper.php

示例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();
 }
开发者ID:hiromi2424,项目名称:mi,代码行数:14,代码来源:mi_form.php

示例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');
 }
开发者ID:Onasusweb,项目名称:DataTypes,代码行数:13,代码来源:DataTypeFormHelper.php

示例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);
 }
开发者ID:saydulk,项目名称:croogo,代码行数:10,代码来源:CroogoFormHelper.php

示例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'));
 }
开发者ID:Onasusweb,项目名称:UserRoles,代码行数:14,代码来源:UserRoleFormHelper.php

示例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);
     }
 }
开发者ID:radig,项目名称:TwitterBootstrap,代码行数:8,代码来源:BootstrapFormHelper.php

示例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);
 }
开发者ID:ederdsr,项目名称:civisindicadores,代码行数:18,代码来源:FilterFormHelper.php

示例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'];
     }
 }
开发者ID:ishapkin,项目名称:CakePHP-Acl-Link-Helper,代码行数:10,代码来源:AclLinkHelper.php

示例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);
 }
开发者ID:ahmadhasankhan,项目名称:croogo,代码行数:16,代码来源:CroogoFormHelper.php

示例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;
 }
开发者ID:ajayphp,项目名称:Zuha,代码行数:11,代码来源:ZuhaFormHelper.php

示例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');
 }
开发者ID:Elderusr,项目名称:cakephp-bootstrap3-helpers,代码行数:11,代码来源:Bs3FormHelper.php

示例13: foreach

 function __construct($config = null)
 {
     if (!empty($config)) {
         foreach ($config as $key => $val) {
             $this->{$key} = $val;
         }
     }
     parent::__construct();
 }
开发者ID:tsmsogn,项目名称:xformHelper,代码行数:9,代码来源:xform.php

示例14:

 function __construct()
 {
     $this->_fieldsetOpen = false;
     parent::__construct();
 }
开发者ID:kouak,项目名称:ircube,代码行数:5,代码来源:uni_form.php

示例15: __construct

 public function __construct(\View $View, $settings = array())
 {
     parent::__construct($View, $settings);
 }
开发者ID:ribaslucian,项目名称:php-cakephp-2.x-base,代码行数:4,代码来源:SemanticFormHelper.php


注:本文中的FormHelper::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。