コード例 #1
0
ファイル: Row.php プロジェクト: TuxBoy/Demo-saf
 /**
  * @return string
  */
 public function __toString()
 {
     if (count($this->cells) > 1) {
         $this->setContent(LF . join(LF, $this->cells) . LF);
     } else {
         $this->setContent(join('', $this->cells));
     }
     return parent::__toString();
 }
コード例 #2
0
ファイル: Table.php プロジェクト: TuxBoy/Demo-saf
 /**
  * @return string
  */
 public function __toString()
 {
     $content = '';
     if (isset($this->head)) {
         $content .= LF . $this->head;
     }
     if (isset($this->body)) {
         $content .= LF . $this->body;
     }
     $this->setContent($content . LF);
     return LF . parent::__toString() . LF;
 }
コード例 #3
0
ファイル: Option.php プロジェクト: TuxBoy/Demo-saf
 /**
  * @return string
  */
 public function __toString()
 {
     $content = $this->getContent();
     if (!strlen($content)) {
         $this->setContent(SP);
         $string = parent::__toString();
         $this->setContent($content);
     } elseif ($content == ($value = $this->getAttribute('value'))) {
         $this->removeAttribute('value');
         $string = parent::__toString();
         $this->setAttribute('value', $value);
     } else {
         $string = parent::__toString();
     }
     return $string;
 }
コード例 #4
0
ファイル: Section.php プロジェクト: TuxBoy/Demo-saf
 /**
  * @return string
  */
 public function __toString()
 {
     $this->setContent(LF . join(LF, $this->rows) . LF);
     return parent::__toString();
 }