示例#1
0
 /**
  *  returns xml represantion of relevant section data
  */
 function getSectionXML(&$section, &$issue, &$articles)
 {
     $data = '<section id="' . $section->getSectionId() . '">
     <sectionTitle>' . htmlspecialchars($section->getSectionTitle()) . '</sectionTitle>';
     //TODO: find solution, just fixed now
     /*if ($section->getSectionAbbrev() != '') {
           $data .= '<abbrev>' . $section->getSectionAbbrev() . '</abbrev>';
       }*/
     $data .= '<data>';
     foreach ($articles as $article) {
         $data .= iPhoneExportDom::getArticleXML($article, $issue, true);
     }
     $data .= '</data>';
     $data .= '</section>';
     return $data;
 }