コード例 #1
0
 function action_detail()
 {
     PermissionHelper::Verification('Editor');
     $section_id = $_GET['id'];
     $model = SectionHelper::PopulateSectionViewModel(SectionService::GetById($section_id));
     $this->view->generate('/Section/detail_view.php', 'template_view.php', $model);
 }
コード例 #2
0
 public static function PopulateSectionViewModelList($sections)
 {
     for ($i = 0; $i < count($sections); $i++) {
         $models[$i] = SectionHelper::PopulateSectionViewModel($sections[$i]);
     }
     return $models;
 }