/** * __construct * * @access public * @param string Contains the type of the <input /> element. * @param string Contains the name of the <input /> element. * @param string Contains the value of the <input /> element. * @return void */ public function __construct($type = '', $name = '', $value = '') { parent::__construct('input', array()); $this->type($type); $this->value($value); $this->attrName($name); }
/** * __construct * * @access public * @param string Contains the action="" attribute value. * @param string Contains the method="" attribute value. * @return void */ public function __construct($action = '', $method = 'POST') { parent::__construct('form'); }
/** * __construct * * @access public * @param string Contains the title of this field (value to live within <label>). * @param Element Contains the element class of this field type. */ public function __construct($title = '', \McGowan\HTML\Views\Element $element = null) { parent::__construct('div'); $this->_label = new \McGowan\HTML\Views\Label($title); $this->_element = $element; }