本文整理汇总了PHP中UserInfo::SetDatabase方法的典型用法代码示例。如果您正苦于以下问题:PHP UserInfo::SetDatabase方法的具体用法?PHP UserInfo::SetDatabase怎么用?PHP UserInfo::SetDatabase使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserInfo
的用法示例。
在下文中一共展示了UserInfo::SetDatabase方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DropTables
function DropTables()
{
$moderator = new Moderator();
$moderator->SetDatabase($this);
$moderator->Drop();
$message = new Message();
$message->SetDatabase($this);
$message->Drop();
$topic = new Topic();
$topic->SetDatabase($this);
$topic->Drop();
$user_info = new UserInfo();
$user_info->SetDatabase($this);
$user_info->Drop();
$session = new Session();
$session->SetDatabase($this);
$session->Drop();
$new = new News();
$new->SetDatabase($this);
$new->Drop();
$shout = new Shout();
$shout->SetDatabase($this);
$shout->Drop();
$paragraph = new Paragraph();
$paragraph->SetDatabase($this);
$paragraph->Drop();
$privilege = new Privilege();
$privilege->SetDatabase($this);
$privilege->Drop();
$role = new Role();
$role->SetDatabase($this);
$role->Drop();
$menu_item = new MenuItem();
$menu_item->SetDatabase($this);
$menu_item->Drop();
$module = new Module();
$module->SetDatabase($this);
$module->Drop();
$page = new Page();
$page->SetDatabase($this);
$page->Drop();
$article = new Article();
$article->SetDatabase($this);
$article->Drop();
$subject = new Subject();
$subject->SetDatabase($this);
$subject->Drop();
$menu = new Menu();
$menu->SetDatabase($this);
$menu->Drop();
$profile = new Profile();
$profile->SetDatabase($this);
$profile->Drop();
$user = new User();
$user->SetDatabase($this);
$user->Drop();
}
示例2: UserInfo
$user->SetDatabase($database);
$result = $user->SelectInactive();
if (mysql_num_rows($result) == 0) {
?>
<tr>
<td bgcolor="#FFFFFF" width="100%" valign="center" align="center" colspan="6">
Não existem usuários inativos.
</td>
</tr>
<?php
}
while ($data = mysql_fetch_array($result)) {
$user_info = new UserInfo();
$user_info->SetDatabase($database);
$user_info->SetUser($data["user_id"]);
$user_info->SelectByUser();
?>
<tr>
<td bgcolor="#FFFFFF" width="5%" valign="center" align="center">
<input type="checkbox" name="p_user_id[]" value="<?php
echo $data["user_id"];
?>
">
</td>
<td bgcolor="#FFFFFF" width="20%" valign="center" align="center">
<?php
echo $data["user_username"];
?>