function delete() { global $__in, $__out; $configuration = new configuration($__in['id']); if ($configuration->delete()) { return dispatcher::redirect(array("action" => "getall"), "deleted_successfully"); } else { // else if the configuration is not deleted return dispatcher::redirect(array("action" => "getall")); } // end if the configuration is deleted }
function delete_many($arg_arr_ids) { if (is_array($arg_arr_ids)) { while (list(, $id) = each($arg_arr_ids)) { $obj = new configuration($id); $obj->delete(); } } }