. */ /** * Amendments Service */ require_once(FILESYSTEMROOTPATH."jc/include/dao/AmendmentsDao.php"); class AmendmentsService { private $amendmentsDao; /** * Default constructor * * @param AmendmentsDao */ public function __construct(AmendmentsDao $amendmentsDao) { $this->amendmentsDao = $amendmentsDao; } /** * Load an Amendment by id * * @param string id of the Amendment to be loaded * @return an Amendment object */ public function load($id) { return $this->amendmentsDao->load($id); } public function loadByProposalId_Order($proposal_id, $order, $accepted){ return $this->amendmentsDao->loadByProposalId_Order($proposal_id, $order, $accepted); } public function saveHeader(Amendments $model, $type){ return $this->amendmentsDao->saveHeader($model, $type); } /** * Save or update Amendments: * * @param Amendments object */ public function SaveOrUpdate($amendment){ return $this->amendmentsDao->saveOrUpdate($amendment); } } ?>