コード例 #1
0
ファイル: File.php プロジェクト: monomelodies/formulaic
 public function __toString()
 {
     $old = $this->value;
     $this->value = null;
     $out = parent::__toString();
     $this->value = $old;
     return $out;
 }
コード例 #2
0
ファイル: Pager.php プロジェクト: brickrouge/brickrouge
 public function __toString()
 {
     $limit = $this[self::T_LIMIT];
     if (!$limit) {
         return '';
     }
     $count = $this[self::T_COUNT];
     $pages = ceil($count / $limit);
     if ($pages < 2) {
         return '';
     }
     return parent::__toString();
 }
コード例 #3
0
ファイル: SelectField.php プロジェクト: ntentan/wyf
 public function __toString()
 {
     $this->set('options', $this->options);
     return parent::__toString();
 }
コード例 #4
0
ファイル: RadioGroup.php プロジェクト: ntentan/wyf
 public function __toString()
 {
     unset($this->attributes['value']);
     $this->set('options', $this->options);
     return parent::__toString();
 }