* * @package stCurrencyPlugin * @subpackage actions */ class stCurrencyBackendComponents extends autostCurrencyBackendComponents { public function executeEditIsoCode() { $this->currencies = sfConfig::get('app_stCurrencyPlugin_currency_list'); $currency_options = array(); $this->system_default = $this->currency->getConfiguration()->get('default_currency'); foreach ($this->currencies as $iso => $currency) { $currency_options[$iso] = $iso . ' - ' . __($currency['label']); } asort($currency_options); $this->currency_options = array('' => __('Nowa waluta')) + $currency_options; $this->selected = $this->currency->getEditIsoCode(); } }