public function getProductCompanies()
 {
     $companyList = array();
     $productCompanies = new Products_Model_ProductCompanyGateway();
     $companies = $productCompanies->fetchProductCompanies();
     foreach ($companies as $company) {
         $companyList[$company['product_company_id']] = $company['product_company_name'];
     }
     return $companyList;
 }
Exemplo n.º 2
0
 /**
  * Get a list of Companies and Build
  * the Select List for the Product Form
  */
 public function getProductCompanies()
 {
     $companyList = array();
     $productCompanies = new Products_Model_ProductCompanyGateway();
     $companies = $productCompanies->fetchProductCompanies();
     if (!$companies) {
         return null;
     }
     $companies = $companies->toArray();
     //Build Product Company Select List
     $companyList[''] = '***Select Product Company***';
     foreach ($companies as $company) {
         $companyList[$company['product_company_id']] = $company['product_company_name'];
     }
     return $companyList;
 }