setTarget() public méthode

Sets the target window or frame to display the Web page content linked to when the THyperLink component is clicked.
public setTarget ( $value )
Exemple #1
0
 /**
  * Sets the target window or frame to display the Web page content linked to when the THyperLink component is clicked.
  * @param string the target window, valid values include '_blank', '_parent', '_self', '_top' and empty string.
  */
 public function setTarget($value)
 {
     if (parent::getTarget() === $value) {
         return;
     }
     parent::setTarget($value);
     if ($this->getActiveControl()->canUpdateClientSide()) {
         $this->getPage()->getCallbackClient()->setAttribute($this, 'target', $value);
     }
 }