ajaxCRUD.com
» a PHP class to create / read / update / delete from a database table using AJAX
by loud canvas mediaAjaxCRUD API Reference
|
<< Reference overview << Home Object: ajaxCRUDConstructorFunctions
Variables |
onDeleteFileExecuteCallBackFunctioncalls a local function when a file (that was previously uploaded) is deleted
void onDeleteFileExecuteCallBackFunction ( String functionName )
use this function when you want to apply certain logic (or display a certain message) when an (uploaded) file is deleted. Use of this function is similiar in a way to a java interface: you must define a function with the name specifed in the function call. This function must take ONE parameter (an array). The indexes of this array are the following: Details
Parameters
Example
$table->onDeleteFileExecuteCallBackFunction("deleteDocument");
function deleteDocument($array){
$id = $array[id];
$field = $array[field];
if ($id != ''){
$success = qr("UPDATE tblMenu SET
fldURL = '' WHERE pkMenuID = $id");
}
}
See also |
"Great api. Really love the demo. "
~Ade
