Ejemplo n.º 1
0
 /**
  * 
  * @param Zend_Form $form
  * @param int $contract
  */
 protected function _populateTypeBudgetForm($form, $contract)
 {
     $mapperContract = new Fefop_Model_Mapper_Contract();
     $rows = $mapperContract->listComponentsContract($contract);
     $optBudgetCategoryType[''] = '';
     foreach ($rows as $row) {
         $optBudgetCategoryType[$row['id_budget_category_type']] = $row['description'];
     }
     $mapperExpenseType = new Fefop_Model_Mapper_ExpenseType();
     $additionalCost = $mapperExpenseType->fetchRow(Fefop_Model_Mapper_ExpenseType::ADDITIONALS);
     $optBudgetCategoryType[Fefop_Model_Mapper_ExpenseType::ADDITIONALS] = $additionalCost->description;
     $form->getElement('fk_id_budget_category_type')->addMultiOptions($optBudgetCategoryType);
 }