コード例 #1
0
 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;
 }
コード例 #2
0
function removeBranch()
{
    $return = manage_study_branch::Remove($_POST["sfid"], $_POST["sbid"]);
    Response::createObjectiveResponse($return, !$return ? ExceptionHandler::popExceptionDescription() : "");
    die;
}