addClass() public method

public addClass ( $class )
Ejemplo n.º 1
0
 /**
  * Constructor
  * Create the special hidden and button fields
  */
 public function __construct()
 {
     parent::__construct();
     $this->setAcceptCharset('UTF-8');
     $this->setMethod('post');
     $this->fields = array();
     $this->attributes['action'] = 'action';
     $this->attributes['enctype'] = 'enctype';
     $this->attributes['method'] = 'method';
     $this->attributes['acceptCharset'] = 'accept-charset';
     $this->attributes['name'] = 'name';
     $this->hidden = new Form\Field($this);
     $this->hidden->addClass('hidden');
     $this->buttons = new Form\Field($this);
     $this->buttons->addClass('buttons');
     $this->errorMessages = array();
 }