コード例 #1
0
ファイル: model.classes.php プロジェクト: hisapi/his
 public function delete_ph_decendants()
 {
     return;
     if ($this->id != "undefined") {
         $old_ph_parent = new ph_parent();
         $old_ph_parents = $old_ph_parent->get_from_hashrange($this->id);
         foreach ($old_ph_parents as $each_ph_parent) {
             $delete_ph_parent = new ph_parent();
             $delete_ph_parent->set($each_ph_parent);
             if ($delete_ph_parent->id_parent_job != "undefined") {
                 $delete_ph_child = new ph_child();
                 $delete_ph_child->get_from_hashrange($delete_ph_parent->id_child_job, $delete_ph_parent->id_parent_job);
                 if ($delete_ph_child->id_child_job != "undefined") {
                     $child_job = new job_id_user();
                     $child_job->get_from_hashrange($this->id_user, $delete_ph_child->id_child_job);
                     $child_job->delete();
                 }
             }
             // END IF
         }
         // END FOREACH
     }
     // END IF
 }
コード例 #2
0
        }
    }
}
if (isset($_GET['action'])) {
    if ($_GET['action'] == "delete-job") {
        if (isset($_POST['id'])) {
            $DELETE_JOB = new job_id_user();
            $DELETE_JOB->get_from_hashrange($u->id_user, $_POST['id']);
            if ($DELETE_JOB->id != "undefined") {
                // CLEAR JOB FLAGS
                $DELETE_JOB->delete_job_flags();
                // CLEAR PH_* ENTRIES
                $DELETE_JOB->delete_ph_decendants();
                $DELETE_JOB->delete_job_new();
                $DELETE_JOB->delete_job_status();
                $DELETE_JOB->delete();
            }
        }
        // END IF (ID SET)
    }
    // END IF (ACTION IS DELETE-JOB)
}
if (isset($_GET['action'])) {
    if (strpos($_GET['action'], "update-match-entry") !== false) {
        if (isset($_POST['id_expr']) && isset($_POST['idx_id']) && isset($_POST['id_entry_type']) && isset($_POST['id_entry_subtype'])) {
            // move up or down
            $move_by_pos_or_neg = 0;
            if (isset($_POST['btnUp'])) {
                $move_by_pos_or_neg = -1;
            }
            if (isset($_POST['btnDown'])) {