コード例 #1
0
 /**
  * @covers HtmlElement::__toString
  */
 public function test__toString()
 {
     $actual = $this->element->__toString();
     $excepted = '<input name="sensorID"></input>';
     $this->assertEquals($excepted, $actual);
 }
コード例 #2
0
ファイル: Control.php プロジェクト: fruition-sciences/phpfw
 /**
  * Return the string representation of this control, as it should be shown
  * in edit mode.
  *
  * @return string
  */
 public function toInput()
 {
     return parent::__toString();
 }
コード例 #3
0
ファイル: Link.php プロジェクト: fruition-sciences/phpfw
 public function __toString()
 {
     $this->set("href", $this->href);
     return $this->active ? parent::__toString() : $this->getBody();
 }
コード例 #4
0
 function __toString()
 {
     $this->setAttribute("name", $this->_html_name);
     if (!$this->enabled) {
         $this->setAttribute("disabled", 'disabled');
     }
     $this->afterHTML .= $this->getClientValidationHtml();
     return parent::__toString();
 }
コード例 #5
0
ファイル: Phtml.php プロジェクト: hofmeister/Pimple
    public function __toString() {
        if ($this->getTag() == 'phtml') {
            return $this->getInnerString();
        }
		return parent::__toString();
    }