Post (Insert, Update, Delete)

Action to perform on the dataset after it is being deleted, or inserted, or update.

Parameters:

  • function: the function to call with the dataset
Sample Code


// my function to call after the set was deleted
function hahaha($set) {
    var_dump($set);
}

// create form object
$forms = new pnFormTrash("people");
$forms->edit("lastname", "firstname");
$forms->show("lastname", "firstname");

$forms->registerHandler("postdelete", 
    array( 
        "function"=>"myfunction"
    )
);

// create html
$forms->doit(); 

Live Sample

  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.