| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function executeApiAction() |
||
| 20 | { |
||
| 21 | $this->getDatabase(); |
||
| 22 | |||
| 23 | $userSearchHelper = UserSearchHelper::get($this->getDatabase()); |
||
| 24 | |||
| 25 | if (WebRequest::getString('all') === null) { |
||
| 26 | $userSearchHelper->byStatus(User::STATUS_ACTIVE); |
||
| 27 | |||
| 28 | } |
||
| 29 | |||
| 30 | $dataset = $userSearchHelper->fetchColumn('username'); |
||
| 31 | return $dataset; |
||
| 32 | } |
||
| 34 |