コード例 #1
0
ファイル: Input.php プロジェクト: nhachey/LAMP-1---Project-1
 /**
  * __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);
 }
コード例 #2
0
ファイル: Form.php プロジェクト: nhachey/LAMP-1---Project-1
 /**
  * __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');
 }
コード例 #3
0
ファイル: Field.php プロジェクト: nhachey/LAMP-1---Project-1
 /**
  *	__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;
 }