diff options
author | xue <> | 2006-01-21 06:06:03 +0000 |
---|---|---|
committer | xue <> | 2006-01-21 06:06:03 +0000 |
commit | dc4c82056f3c600267e75e1bb84869124870988f (patch) | |
tree | 0786c27c43fc602e3ac191d2d083a84bf32fb53c /framework/Web/UI/WebControls/TLinkButton.php | |
parent | 7de06fe5ac3e9f2417e317fe8754cdf09574ccfb (diff) |
Added description for the rest simple HTML controls in the quickstart demo.
Diffstat (limited to 'framework/Web/UI/WebControls/TLinkButton.php')
-rw-r--r-- | framework/Web/UI/WebControls/TLinkButton.php | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/framework/Web/UI/WebControls/TLinkButton.php b/framework/Web/UI/WebControls/TLinkButton.php index b8d1ccaa..113a3a69 100644 --- a/framework/Web/UI/WebControls/TLinkButton.php +++ b/framework/Web/UI/WebControls/TLinkButton.php @@ -43,8 +43,6 @@ * And the validation may be restricted within a certain group of validator
* controls by setting {@link setValidationGroup ValidationGroup} property.
* If validation is successful, the data will be post back to the same page.
- * You can change the postback target by setting the {@link setPostBackUrl PostBackUrl}
- * property.
*
* TLinkButton will display the {@link setText Text} property value
* as the hyperlink text. If {@link setText Text} is empty, the body content
@@ -84,10 +82,9 @@ class TLinkButton extends TWebControl implements IPostBackEventHandler if($this->getEnabled(true))
{
- $url = $this->getPostBackUrl();
//create unique no-op url references
$nop = "#".$this->getClientID();
- $writer->addAttribute('href', $url ? $url : $nop);
+ $writer->addAttribute('href', $nop);
$this->getPage()->getClientScript()->registerPostBackControl($this);
}
else if($this->getEnabled()) // in this case, parent will not render 'disabled'
@@ -103,10 +100,9 @@ class TLinkButton extends TWebControl implements IPostBackEventHandler {
$options['EventTarget'] = $this->getUniqueID();
$options['CausesValidation'] = $this->getCausesValidation();
- $options['ValidationGroup'] = $this->getValidationGroup();
- $options['PostBackUrl'] = $this->getPostBackUrl();
+ $options['ValidationGroup'] = $this->getValidationGroup();
$options['StopEvent'] = true;
-
+
return $options;
}
@@ -176,22 +172,6 @@ class TLinkButton extends TWebControl implements IPostBackEventHandler }
/**
- * @return string the URL of the page to post to when the button is clicked, default is empty meaning post to the current page itself
- */
- public function getPostBackUrl()
- {
- return $this->getViewState('PostBackUrl','');
- }
-
- /**
- * @param string the URL of the page to post to from the current page when the button is clicked, empty if post to the current page itself
- */
- public function setPostBackUrl($value)
- {
- $this->setViewState('PostBackUrl',$value,'');
- }
-
- /**
* @return boolean whether postback event trigger by this button will cause input validation
*/
public function getCausesValidation()
|