| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function executeApiAction() |
||
| 21 | { |
||
| 22 | $this->getDatabase(); |
||
| 23 | |||
| 24 | /** @var EmailTemplate[] $templates */ |
||
| 25 | $templates = EmailTemplate::getAllActiveTemplates(null, $this->getDatabase()); |
||
| 26 | |||
| 27 | $dataset = []; |
||
| 28 | foreach ($templates as $tpl) { |
||
| 29 | if($tpl->getJsquestion() != "") { |
||
| 30 | $dataset[$tpl->getId()] = $tpl->getJsquestion(); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | return $dataset; |
||
| 35 | } |
||
| 37 |