Beispiel #1
0
 public function __construct($options = null)
 {
     $this->_disabledDefaultActions = true;
     parent::__construct($options);
     $countries = Cible_FunctionsGeneral::getCountries();
     $states = Cible_FunctionsGeneral::getStates();
 }
Beispiel #2
0
 /**
  * Format address and set string values.
  *
  * @param array $address
  * @param array $addressName
  * @param Zend_Session_Namespace $session
  */
 protected function getAddrData($address, $addressName, $session)
 {
     if (isset($address['A_CityId']) && (int) $address['A_CityId']) {
         $city = Cible_FunctionsGeneral::getCities(Zend_Registry::get('languageID'), $address['A_CityId']);
         $session->customer[$addressName]['A_CityId'] = utf8_decode($city['value']);
     }
     if ((int) $address['A_CountryId']) {
         $country = Cible_FunctionsGeneral::getCountries(Zend_Registry::get('languageID'), $address['A_CountryId']);
         $session->customer[$addressName]['A_CountryId'] = utf8_decode($country['name']);
     }
     if ((int) $address['A_StateId']) {
         $state = Cible_FunctionsGeneral::getStates(Zend_Registry::get('languageID'), $address['A_StateId']);
         $session->customer[$addressName]['A_StateId'] = utf8_decode($state['name']);
     }
 }