示例#1
0
 /**
  * Constructor
  * @param \Foundation\Form $form the form that contains this field
  */
 public function __construct(\Foundation\Form $form)
 {
     parent::__construct();
     $this->addClass('field');
     $this->elements = array();
     $this->form = $form;
 }
示例#2
0
 public function __construct()
 {
     parent::__construct();
     $this->attributes['disabled'] = 'disabled';
     $this->attributes['value'] = 'value';
     $this->attributes['metadataString'] = 'data-metadata';
     $this->clearMetadata();
 }
示例#3
0
 /**
  * Constructor
  * @param string $test
  */
 public function __construct($text)
 {
     parent::__construct();
     $this->text = $text;
     $this->current = false;
     $this->attributes['charset'] = 'charset';
     $this->attributes['coords'] = 'coords';
     $this->attributes['href'] = 'href';
     $this->attributes['hreflang'] = 'hreflang';
     $this->attributes['name'] = 'name';
     $this->attributes['rel'] = 'rel';
     $this->attributes['rev'] = 'rev';
     $this->attributes['shape'] = 'shape';
 }
示例#4
0
 /**
  * Constructor
  * @param \Foundation\Form\Field $field
  */
 public function __construct(\Foundation\Form\Field $field)
 {
     $this->field = $field;
     parent::__construct();
     $this->messages = array();
     $this->attributes['name'] = 'name';
     $this->attributes['accesskey'] = 'accesskey';
     $this->attributes['tabindex'] = 'tabindex';
     $this->validators = array();
     $this->filters = array();
     $this->addClass('field');
     //add the Element class without its namespace
     $class = \explode('\\', \get_class($this));
     $this->addClass($class[count($class) - 1]);
 }
示例#5
0
 /**
  * Construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->links = array();
 }