/**
  * Class constructor. Sets up the ZForm element, types it as a 'INPUT' element.
  * This is the base class for all the INPUT types supported by ZForm.
  *
  * @param string id The optional identifier for the newly created ZFormInputElement
  * @param ZFormWebElement The optional parent of the newly create ZFormInputElement
  * The default value is null which means the ZFormInputElement is a root element.
  * @param string $type The HTML type of the input element, provided by the subclasses
  * @return     void
  */
 public function __construct($id = null, $parentNode = null, $type = null)
 {
     parent::__construct($id, $parentNode, 'INPUT');
     if ($type) {
         $this->type = $type;
     }
 }
 /**
  * Class constructor. Sets up the ZForm element, types it as a 'OPTION' element.
  * This is the base class for all the INPUT types supported by ZForm.
  *
  * @param string id The optional identifier for the newly created ZFormOption
  * @param ZFormWebElement The optional parent of the newly create ZFormOption
  * The default value is null which means the ZFormOption is a root element.
  * @param string $value The value of the HTML option field
  * @param string $text Text to be displayed as the option
  * @return     void
  */
 public function __construct($id = null, $parentNode = null, $value = null, $text = null)
 {
     parent::__construct($id, $parentNode, 'OPTION');
     $this->_text = $text;
     if ($value) {
         $this->value = $value;
     }
 }
 /**
  * Class constructor. Sets up the ZForm element, types it as a 'SELECT' element.
  * This is the base class for all the INPUT types supported by ZForm.
  *
  * @param string id The optional identifier for the newly created ZFormSelect
  * @param ZFormWebElement The optional parent of the newly create ZFormSelect
  * The default value is null which means the ZFormSelect is a root element.
  * @return     void
  */
 public function __construct($id = null, $parentNode = null)
 {
     parent::__construct($id, $parentNode, 'SELECT');
 }
Beispiel #4
0
 /**
  * Class constructor. 
  *
  * @param string id The optional identifier for the newly created ZFormButton
  * @param ZFormWebElement The optional parent of the newly create ZFormButton.
  * The default value is null which means the ZFormButton is a root element.
  * @param string $text The text to appear in the HTML anchor
  * @return     void
  */
 public function __construct($id = null, $parentNode = null, $text = '')
 {
     parent::__construct($id, $parentNode, 'A');
     $this->_text = $text;
 }