public static function PopulateAttributeGroupViewModelList($attributes) { for ($i = 0; $i < count($attributes); $i++) { $models[$i] = AttributeGroupHelper::PopulateAttributeGroupViewModel($attributes[$i]); } return $models; }
function action_detail() { PermissionHelper::Verification('Editor'); $group_id = $_GET['id']; $model = AttributeGroupHelper::PopulateAttributeGroupViewModel(AttributeGroupService::GetById($group_id)); $this->view->generate('/AttributeGroup/detail_view.php', 'template_view.php', $model); }