/** * Pobiera wszystkie dostępne waluty * @return array * @throws Exception */ protected function _getGlobalCurrencies() { return $this->_caModel->getCurrencies(false); }
protected function currency($acl = false, $fieldname = 'currency', $label = 'Waluta:', $required = null) { $currency = new CurrencyAvailable(); $method = $acl ? 'addSupervisedElement' : 'addElement'; $this->{$method}('select', $fieldname, array('required' => is_null($required) ? $this->default_policy : $required, 'label' => $label, 'MultiOptions' => $this->addClearStart($currency->getCurrencies()))); $this->notEmpty($fieldname); }