Name of function to call after record is deleted. Default: The function is passed 3 parameters. The first parameter is $key, the primary key. The second is $deleteok which is set to true if the record was deleted correctly. The 3rd parameter is the $lens object.Syntax
$lens->postDeleteSQL = 'DeleteChildren';
function DeleteChildren($key,$ok,$lens)
{
if ($ok)
$lens->connection->Execute(
"delete * from childtable where parentid=$key"
);
} Basic:Yes Advanced/Enterprise:Yes DynamicEdit:Yes [Version 1.0]
|