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); }
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); }