/** * This is construct base of the class. * * A public constructor; initializes the variable $instanceDataBase. * */ public function __construct($instanceDataBase) { parent::__construct($instanceDataBase); MembershipAppForm::setDataOperationBusiness($instanceDataBase); MembershipAppForm::getBusiness(); MembershipAppForm::getDescriptionBusiness(); }
$data_m_h3 = array($_POST['nombre_hm_3'], $fch_nac_hm_3, $_POST['colegio_hm_3'], $_POST['universidad_hm_3'], $_POST['trabajo_hm_3'], $_POST['EDIT'], 29, $_POST['id_hm_3']); if (isset($_POST['id_hm_3']) && isset($_POST['nombre_hm_3'])) { $idmh3 = $hnos->updateKindBrother($data_m_h3, $idTransaction); } if (empty($_POST['id_hm_3']) && isset($_POST['nombre_hm_3'])) { $data_m_h3 = array($_POST['EDIT'], 29, $_POST['nombre_hm_3'], $fch_nac_hm_3, $_POST['colegio_hm_3'], $_POST['universidad_hm_3'], $_POST['trabajo_hm_3']); $idmh3 = $hnos->insertKindBrother($data_m_h3, $idTransaction); } Forms::setMessage('SUCCESS', $v_label["SHORT_MESSAGE_OK_EDIT"], $v_label["DETAIL_MESSAGE_OK_EDIT"]); } else { Forms::setMessage('ERROR', $v_label["SHORT_MESSAGE_NOOK_EDIT"], $v_label["DETAIL_MESSAGE_NOOK_EDIT"]); } break; case 'DELETE': $transaction = new Transaction($registry[$nameDataBase]); MembershipAppForm::setDataOperationBusiness($registry[$nameDataBase]); $idTransaction = $transaction->insertTransaction(array(MembershipAppForm::$business, MembershipAppForm::$update, MembershipAppForm::$descriptionBusiness)); $data = array($_GET['DELETE']); $statusTransactionDB = $catalog->deleteMembershipAppForm($data, $idTransaction); if ($statusTransactionDB > 0) { Forms::setMessage('SUCCESS', $v_label["SHORT_MESSAGE_OK_DELETE"], $v_label["DETAIL_MESSAGE_OK_DELETE"]); } else { Forms::setMessage('ERROR', $v_label["SHORT_MESSAGE_NOOK_DELETE"], $v_label["DETAIL_MESSAGE_NOOK_DELETE"]); } break; default: break; } // Obtener lista $list = $catalog->getListMembershipAppForm(); ?>