Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
taskviewmanager.php
1<?php
2
4
8use Bitrix\Tasks\Rest\Controllers;
9use Bitrix\Tasks\RestView;
10
11final class TaskViewManager extends ViewManager
12{
18 public function getView(Engine\Controller $controller)
19 {
20 if ($controller instanceof Controllers\ViewedGroup\Project)
21 {
22 return new RestView\ViewedGroup();
23 }
24
25 if ($controller instanceof Controllers\ViewedGroup\Scrum)
26 {
27 return new RestView\ViewedGroup();
28 }
29
30 if ($controller instanceof Controllers\ViewedGroup\User)
31 {
32 return new RestView\ViewedGroup();
33 }
34
35 throw new RestException('Unknown object ' . get_class($controller));
36 }
37}
getView(Engine\Controller $controller)