<?php
 namespace App\ReportsData\EntityFields; class Country extends \App\ReportsData\EntityFields\GeneralAbstract { protected $pkColumnName = 'code'; protected function getDbTableName() { global $DBTRd_countries; return $DBTRd_countries; } protected function getCustomValues($fieldName) { switch ($fieldName) { case 'continentName': $_LANG = \App\Loader_Lang::getInstance()->getAll(); $this->values[$fieldName] = $_LANG['continents'][$this->values['continent']]; return $this->values[$fieldName]; case 'continentCode2': $CFG = \Engine\Loader_Cfg::getInstance()->getAll(); $this->values[$fieldName] = $CFG['continentCodes'][$this->values['continent']]; return $this->values[$fieldName]; case 'zoneName': $_LANG = \App\Loader_Lang::getInstance()->getAll(); $this->values[$fieldName] = $_LANG['locations']['countriesZones'][$this->values['zone']]; return $this->values[$fieldName]; default: return parent::getCustomValues($fieldName); } } } 