/** add and clone last record * @access public * @param array $coinDataFlat * @return void */ public function optionsAddClone($coinData) { if (array_key_exists('ruler_id', $coinData)) { $rulers = new Rulers(); $this->_view->form->ruler_id->addMultiOptions(array(NULL => 'Please choose a ruler', 'Available rulers' => $rulers->getLastRulersPairs($coinData['broadperiod']))); } if (array_key_exists('denomination', $coinData)) { $denominations = new Denominations(); $this->_view->form->denomination->addMultiOptions(array(NULL => 'Please choose a denomination', 'Available choices' => $denominations->getDenominationByBroadPeriodPairs($coinData['broadperiod']))); } if (array_key_exists('mint_id', $coinData)) { $mints = new Mints(); $this->_view->form->mint_id->addMultiOptions(array(NULL => 'Please choose a mint', 'Available choices' => $mints->getMintbyBroadperiodPairs($coinData['broadperiod']))); } if (array_key_exists('broadperiod', $coinData)) { if ($coinData['broadperiod'] == 'IRON AGE') { $geography = new Geography(); $this->_view->form->geographyID->addMultiOptions(array(NULL => 'Please choose a geography if applicable', 'Available choices' => $geography->getIronAgeGeographyDD())); } } }