| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public static function getPrivateDepartments() |
||
| 27 | { |
||
| 28 | $dataTable = DataSetFactory::getDataTableByNames('fvs', 'departments'); |
||
| 29 | $filter = new \Data\Filter('public eq false'); |
||
| 30 | $depts = $dataTable->read($filter); |
||
| 31 | $res = array(); |
||
| 32 | if(empty($depts)) |
||
| 33 | { |
||
| 34 | return $res; |
||
| 35 | } |
||
| 36 | $count = count($depts); |
||
|
|
|||
| 37 | for($i = 0; $i < $count; $i++) |
||
| 38 | { |
||
| 39 | array_push($res, $depts[$i]['departmentID']); |
||
| 40 | } |
||
| 41 | return $res; |
||
| 42 | } |
||
| 44 |