예제 #1
0
파일: password.php 프로젝트: Borvik/Munla
 /**
  * Creates a new password form element.
  * 
  * @param array $attributes The attributes that should be assigned to the password element.
  */
 public function __construct(array $attributes)
 {
     parent::__construct($attributes);
     $this->type = 'password';
     if (isset($this->attributes['value'])) {
         unset($this->attributes['value']);
     }
 }
예제 #2
0
파일: search.php 프로젝트: Borvik/Munla
 /**
  * Creates a new search form element.
  * 
  * @param array $attributes The attributes that should be assigned to the search element.
  */
 public function __construct(array $attributes)
 {
     parent::__construct($attributes);
     $this->type = 'search';
 }