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


PHP FormControl::__construct方法代码示例

本文整理汇总了PHP中FormControl::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP FormControl::__construct方法的具体用法?PHP FormControl::__construct怎么用?PHP FormControl::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FormControl的用法示例。


在下文中一共展示了FormControl::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct($name, $storage = 'null:null', array $properties = array(), array $settings = array())
 {
     $this->settings['error_wrap'] = function ($output, $errors) {
         return sprintf('<ol class="_control_error_list"><li>%2$s</li></ol>', $output, implode('</li><li>', $errors));
     };
     parent::__construct($name, $storage, $properties, $settings);
 }
开发者ID:habari,项目名称:system,代码行数:7,代码来源:formcontroldom.php

示例2: __construct

 public function __construct($forcedValue = NULL)
 {
     parent::__construct();
     $this->control->type = 'hidden';
     $this->value = (string) $forcedValue;
     $this->forcedValue = $forcedValue;
 }
开发者ID:bazo,项目名称:Mokuji,代码行数:7,代码来源:HiddenField.php

示例3: __construct

 public function __construct($forcedValue = NULL)
 {
     parent::__construct();
     $this->control->type = 'hidden';
     $this->control->data['nette-rules'] = FALSE;
     $this->value = (string) $forcedValue;
     $this->forcedValue = $forcedValue;
 }
开发者ID:radypala,项目名称:maga-website,代码行数:8,代码来源:HiddenField.php

示例4: __construct

 /**
  * @param  string  label
  * @param  int  width of the control
  * @param  int  maximum number of characters the user may enter
  */
 public function __construct($label, $format = null)
 {
     parent::__construct($label);
     if (null === $format) {
         $format = self::$defaultFormat;
     }
     $this->format = $format;
 }
开发者ID:romcok,项目名称:DateSelect,代码行数:13,代码来源:DateSelect.php

示例5: __construct

 /**
  * @param  string  label
  * @param  array   items from which to choose
  * @param  int     number of rows that should be visible
  */
 public function __construct($label = NULL, array $items = NULL, $size = NULL)
 {
     parent::__construct($label);
     $this->control->setName('select');
     $this->control->size = $size > 1 ? (int) $size : NULL;
     if ($items !== NULL) {
         $this->setItems($items);
     }
 }
开发者ID:radypala,项目名称:maga-website,代码行数:14,代码来源:SelectBox.php

示例6: __construct

 /**
  * @param  string  label
  * @param  array   options from which to choose
  */
 public function __construct($label = NULL, array $items = NULL)
 {
     parent::__construct($label);
     $this->control->type = 'radio';
     $this->container = Html::el();
     $this->separator = Html::el('br');
     if ($items !== NULL) {
         $this->setItems($items);
     }
 }
开发者ID:radypala,项目名称:maga-website,代码行数:14,代码来源:RadioList.php

示例7: __construct

 /**
  * @param  string  label
  * @param  array   items from which to choose
  * @param  int     number of rows that should be visible
  */
 public function __construct($label = NULL, array $items = NULL, $size = NULL)
 {
     parent::__construct($label);
     $this->control->setName('select');
     $this->control->size = $size > 1 ? (int) $size : NULL;
     $this->control->onfocus = 'this.onmousewheel=function(){return false}';
     // prevents accidental change in IE
     $this->label->onclick = 'document.getElementById(this.htmlFor).focus();return false';
     // prevents deselect in IE 5 - 6
     if ($items !== NULL) {
         $this->setItems($items);
     }
 }
开发者ID:bazo,项目名称:Mokuji,代码行数:18,代码来源:SelectBox.php

示例8: __construct

 public function __construct($value, $name = null)
 {
     parent::__construct($name);
     $this->value($value);
 }
开发者ID:adamwathan,项目名称:form,代码行数:5,代码来源:Button.php

示例9: __construct

 /**
  * @param  string  label
  */
 public function __construct($label)
 {
     $this->monitor('Nette\\Forms\\Form');
     parent::__construct($label);
     $this->control->type = 'file';
 }
开发者ID:jakubkulhan,项目名称:shopaholic,代码行数:9,代码来源:FileUpload.php

示例10: __construct

 /**
  * @param  string  caption
  */
 public function __construct($caption = NULL)
 {
     parent::__construct($caption);
     $this->control->type = 'button';
     $this->value = FALSE;
 }
开发者ID:vrana,项目名称:nette,代码行数:9,代码来源:Button.php

示例11: __construct

 /**
  * @param  string  label
  */
 public function __construct($label)
 {
     parent::__construct($label);
     $this->control->type = 'checkbox';
     $this->value = FALSE;
 }
开发者ID:laiello,项目名称:webuntucms,代码行数:9,代码来源:Checkbox.php

示例12: __construct

 /**
  * Called upon construct.  Sets default control properties
  */
 public function __construct($name, $storage = 'null:null', array $properties = array(), array $settings = array())
 {
     $this->properties['type'] = 'text';
     parent::__construct($name, $storage, $properties, $settings);
 }
开发者ID:habari,项目名称:system,代码行数:8,代码来源:formcontroltext.php

示例13: __construct

 /**
  * @param  string  label
  */
 public function __construct($label = NULL)
 {
     parent::__construct($label);
     $this->control->type = 'file';
 }
开发者ID:riskatlas,项目名称:micka,代码行数:8,代码来源:UploadControl.php

示例14: __construct

 /**
  * @param  string  label
  */
 public function __construct($label = NULL)
 {
     parent::__construct($label);
     $this->control->type = 'file';
     $this->control->data['nette-rules'] = FALSE;
 }
开发者ID:radypala,项目名称:maga-website,代码行数:9,代码来源:FileUpload.php

示例15: __construct

 public function __construct($controlType, $controlId, $labelText)
 {
     parent::__construct($controlType, $controlId, $labelText);
     $this->setHidden();
 }
开发者ID:eguicciardi,项目名称:ada,代码行数:5,代码来源:FormControl.inc.php


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