/**
  * Get countries
  * @param null $sValue
  * @return array
  */
 public function getCountries($sValue = null)
 {
     $aReturn = array();
     if (!empty($sValue)) {
         $aCountries = Phpfox::getService('core.country')->getChildren($sValue);
         if (!empty($aCountries)) {
             $aReturn[] = array('value' => 0, 'name' => Phpfox::getPhrase('core.state_province'), 'default' => true);
         }
     } else {
         $aCountries = Phpfox::getService('core.country')->get();
         $sUserCountryIso = PHpfox::getUserBy('country_iso');
     }
     foreach ($aCountries as $sIso => $sCountryName) {
         $aReturn[] = array('value' => $sIso, 'name' => $sCountryName, 'default' => isset($sUserCountryIso) && $sIso == $sUserCountryIso ? true : false);
     }
     return $aReturn;
 }
 public function getListCountries()
 {
     $aCountries = Phpfox::getService('core.country')->get();
     $sUserCountryIso = PHpfox::getUserBy('country_iso');
     $aReturn = array();
     foreach ($aCountries as $sIso => $sCountryName) {
         $aReturn[] = array('iso' => $sIso, 'name' => $sCountryName, 'default' => $sIso == $sUserCountryIso ? true : false);
     }
     return $aReturn;
 }