本文整理匯總了PHP中BaseUser::deleteUser方法的典型用法代碼示例。如果您正苦於以下問題:PHP BaseUser::deleteUser方法的具體用法?PHP BaseUser::deleteUser怎麽用?PHP BaseUser::deleteUser使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BaseUser
的用法示例。
在下文中一共展示了BaseUser::deleteUser方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: BaseUser
$BUser = new BaseUser();
$BUser->disableUser($userid);
base_header("Location: base_useradmin.php?action=list");
break;
case "enableuser":
// enable user -- Kevin
$userid = filterSql($_GET['userid']);
$BUser = new BaseUser();
$BUser->enableUser($userid);
base_header("Location: base_useradmin.php?action=list");
break;
case "deleteuser":
// Deletes user
$userid = filterSql($_GET['userid']);
$BUser = new BaseUser();
$BUser->deleteUser($userid);
base_header("Location: base_useradmin.php?action=list");
break;
case "list":
// Build table to list users and return it as $usertable
$user = new BaseUser();
$users = $user->returnUsers();
$tmpHTML = "<TABLE CELLSPACING=0 CELLPADDING=2 BORDER=0 WIDTH='100%' BGCOLOR='#000000'><TR><TD>";
$tmpHTML = $tmpHTML . "<table CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH='100%' BGCOLOR='#FFFFFF'>";
$tmpHTML = $tmpHTML . "<tr><td CLASS='plfieldhdr' width=25>" . _EDIT . "</td><td CLASS='plfieldhdr' width=35> " . _DELETE . "</td><td CLASS='plfieldhdr'>" . _ID . "</td><td CLASS='plfieldhdr'>" . _LOGIN;
$tmpHTML = $tmpHTML . "</td><td CLASS='plfieldhdr'>" . _ROLEID . "</td><td CLASS='plfieldhdr'>" . _NAME;
$tmpHTML = $tmpHTML . "</td><td CLASS='plfieldhdr'>" . _ENABLED . "</td></tr>";
// Verify that we have a user in the db --Kevin
if ($users != "") {
foreach ($users as $row) {
//explode array rows and build table