src/Common/Model/Country.php
public function getAllFlat()
    {
        $aOut       = array();
        $aCountries = $this->getAll();

        foreach ($aCountries as $oCountry) {
            $aOut[$oCountry->code] = $oCountry->label;
        }

        return $aOut;
    }
public function getAllFlat()
    {
        $aOut       = array();
        $aCountries = $this->getAll();

        foreach ($aCountries as $oCountry) {
            $aOut[$oCountry->code] = $oCountry->label;
        }

        return $aOut;
    }
public function getAllFlat ( ) { $ aOut = array ( ) ; $ aCountries = $ this -> getAll ( ) ; foreach ( $ aCountries as $ oCountry ) { $ aOut [ $ oCountry -> code ] = $ oCountry -> label ; } return $ aOut ; }
Get all defined countries as a flat array
@return array
Get all defined countries as a flat array