getText() public method

public getText ( ) : string
return string the text value of the label
コード例 #1
0
ファイル: TActiveLabel.php プロジェクト: pradosoft/prado
 /**
  * On callback response, the inner HTML of the label is updated.
  * @param string the text value of the label
  */
 public function setText($value)
 {
     if (parent::getText() === $value) {
         return;
     }
     parent::setText($value);
     if ($this->getActiveControl()->canUpdateClientSide()) {
         $this->getPage()->getCallbackClient()->update($this, $value);
     }
 }
コード例 #2
0
ファイル: TLabelTest.php プロジェクト: pradosoft/prado
 public function testSetText()
 {
     $label = new TLabel();
     $label->setText('Test');
     $this->assertEquals('Test', $label->getText());
 }