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;
         }
     }
 }
Exemple #2
0
 /**
  * Constructor
  */
 public function __construct($field)
 {
     parent::__construct($field);
     $this->attributes['multiple'] = 'multiple';
 }
 public function __construct(array $attributes = array())
 {
     parent::__construct($attributes);
     $this->addClass('pager');
 }
Exemple #4
0
 /**
  * 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');
 }