コード例 #1
0
ファイル: Unordered_List.php プロジェクト: TuxBoy/Demo-saf
 /**
  * @return string
  */
 public function getContent()
 {
     $content = parent::getContent();
     if (!isset($content)) {
         $items = $this->items;
         asort($items);
         $content = '';
         foreach ($items as $item) {
             $content .= new List_Item($item);
         }
         $this->setContent($content);
     }
     return $content;
 }
コード例 #2
0
ファイル: Option.php プロジェクト: TuxBoy/Demo-saf
 /**
  * @return string
  * @todo This is a patch to make Html_Option::getContent work. Remove this when it will work
  */
 public function getContent()
 {
     return parent::getContent();
 }