private function init_combos() { if (!$this->currencyList) { $currencyDataAccess = new CurrencyDataAccess($this->getDbAdapter()); $this->currencyList = $currencyDataAccess->getComboData('currencyId', 'code'); } if (!$this->companyList) { $companyDataAccess = new CompanyDataAccess($this->getDbAdapter()); $this->companyList = $companyDataAccess->getComboData('companyId', 'name'); } if (!$this->contactList) { $contactDataAccess = new ContactDataAccess($this->getDbAdapter()); $this->contactList = $contactDataAccess->getComboData('contactId', 'name'); } if (!$this->statusList) { $constantDataAccess = new ConstantDataAccess($this->getDbAdapter()); $this->statusList = $constantDataAccess->getComboByName('default_status'); } }
/** * @return array */ public function currencyCombo() { $dataAccess = new CurrencyDataAccess($this->getDbAdapter()); return $dataAccess->getComboData('currencyId', 'code'); }