/** * 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; }
public function __construct() { parent::__construct(); $this->attributes['disabled'] = 'disabled'; $this->attributes['value'] = 'value'; $this->attributes['metadataString'] = 'data-metadata'; $this->clearMetadata(); }
/** * 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'; }
/** * 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]); }
/** * Construct */ public function __construct() { parent::__construct(); $this->links = array(); }