<?php
namespace App\Form\Input; class Select_SegmentClassName extends \Engine\Form\Input\Select { protected function determinePossibleValues() { $CFG = \Engine\Loader_Cfg::getInstance()->getGlobal(); $_LANG = \App\Loader_Lang::getInstance()->getGlobal(); $possibleValuesServiceClassName = []; foreach ($CFG['travel']['transportSegmentClassNames'] as $transportSegmentClassName) { $possibleValuesServiceClassName[$transportSegmentClassName] = $_LANG['flightClass'][$transportSegmentClassName]; } return $possibleValuesServiceClassName; } }