Пример #1
0
 /**
  * @param mixed $content
  * @param mixed $value
  *
  * @since 2.0
  */
 public function __construct($content = null, $value = null)
 {
     parent::__construct();
     $this->setContents($content);
     if (is_null($value)) {
         $value = $content;
     }
     $this->setValue($value);
     unset($this->attributes['name']);
 }
Пример #2
0
 /**
  * @param string $name
  * @param array  $attributes
  * @param mixed  $value
  *
  * @since 2.0
  */
 public function __construct($name = '', array $attributes = [], $value = null)
 {
     $attributes['type'] = 'reset';
     parent::__construct($name, $attributes, $value);
 }
Пример #3
0
 /**
  * @param string $name
  * @param array  $attributes
  * @param mixed  $value
  *
  * @since 2.0
  */
 public function __construct($name = '', array $attributes = [], $value = null)
 {
     parent::__construct($name, $attributes, $value);
     $this->setContents('');
 }