コード例 #1
0
 /**
  * Renders the text content of the link.
  *
  * @param boolean $renderScriptBlock 
  *
  * @return void
  */
 public function renderBody($renderScriptBlock = false)
 {
     if ($this->_text) {
         echo $this->_text;
     }
     parent::renderBody($renderScriptBlock);
 }
コード例 #2
0
 /**
  * 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;
     }
 }
コード例 #3
0
 /**
  * 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;
     }
 }
コード例 #4
0
 /**
  * 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');
 }