コード例 #1
0
ファイル: Inputdata.php プロジェクト: knatorski/SMS
 /**
  * Pobiera wszystkie dostępne waluty
  * @return array
  * @throws Exception
  */
 protected function _getGlobalCurrencies()
 {
     return $this->_caModel->getCurrencies(false);
 }
コード例 #2
0
ファイル: Abstract.php プロジェクト: knatorski/SMS
 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);
 }