function Add() { $this->sbid = manage_study_branch::LastID($this->sfid) + 1; if (parent::insert("study_branchs", $this) === false) { return false; } $this->sfid = parent::InsertID(); $daObj = new DataAudit(); $daObj->ActionType = DataAudit::Action_add; $daObj->MainObjectID = PdoDataAccess::InsertID(); $daObj->TableName = "study_branchs"; $daObj->execute(); return true; }
function removeBranch() { $return = manage_study_branch::Remove($_POST["sfid"], $_POST["sbid"]); Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : ""); die; }