<?php
 namespace App\Form\Input; class Select_InvoiceVoidReason extends \Engine\Form\Input\Select { protected function determinePossibleValues() { $invoiceEntityCfg = \Entity\Invoice::loadCFG(); $_LANG = \App\Loader_Lang::getInstance()->getAll(); $list = []; foreach ($invoiceEntityCfg['_special']['voidReasons'] as $voidReason) { $list[$voidReason] = $_LANG['invoiceVoidReason'][$voidReason]; } return $list; } } 