public function __construct(array $attributes = array()) { parent::__construct($attributes); $this->addClass('pagination'); if ($this->hasAttribute('SIZE')) { $size = $this->getAttribute('SIZE'); $this->ignoreAttribute('SIZE'); switch ($size) { case 'large': case 'lg': $this->addClass('pagination-lg'); break; case 'small': case 'sm': $this->addClass('pagination-sm'); break; } } }
/** * Constructor */ public function __construct($field) { parent::__construct($field); $this->attributes['multiple'] = 'multiple'; }
public function __construct(array $attributes = array()) { parent::__construct($attributes); $this->addClass('pager'); }
/** * Constructor * Make $value and array */ public function __construct(\Foundation\Form\Field $field) { parent::__construct($field); $this->value = array(); }
public function __construct(array $attributes = array()) { parent::__construct($attributes); $this->setTagName('OL'); $this->addClass('breadcrumb'); }