Ejemplo n.º 1
0
 public function processUpdateEligibilityAction()
 {
     $id = (int) $this->_getParam('id');
     $data = false;
     if ($id > 0) {
         $insuredRelationship = new InsuredRelationship();
         $insuredRelationship->insuredRelationshipId = $id;
         $insuredRelationship->populate();
     }
     $params = $this->_getParam('pos');
     $insuredRelationship->populateWithArray($params);
     $insuredRelationship->persist();
     $data = array('row' => $this->_generateEligibilityRowData($insuredRelationship));
     $json = Zend_Controller_Action_HelperBroker::getStaticHelper('json');
     $json->suppressExit = true;
     $json->direct($data);
 }
Ejemplo n.º 2
0
 public function processReorderPayersAction()
 {
     $from = (int) $this->_getParam('from');
     $to = (int) $this->_getParam('to');
     $ret = false;
     if ($from > 0 && $to > 0) {
         $payerFrom = new InsuredRelationship();
         $payerFrom->insuredRelationshipId = $from;
         $payerFrom->populate();
         $payerTo = new InsuredRelationship();
         $payerTo->insuredRelationshipId = $to;
         $payerTo->populate();
         $ret = InsuredRelationship::reorder($payerFrom, $payerTo);
     }
     $json = Zend_Controller_Action_HelperBroker::getStaticHelper('json');
     $json->suppressExit = true;
     $json->direct($ret);
 }