本文整理汇总了PHP中messages::myActiveChatsCount方法的典型用法代码示例。如果您正苦于以下问题:PHP messages::myActiveChatsCount方法的具体用法?PHP messages::myActiveChatsCount怎么用?PHP messages::myActiveChatsCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类messages
的用法示例。
在下文中一共展示了messages::myActiveChatsCount方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: chats
echo $accountInfo['id'];
?>
&access_token=<?php
echo admin::getAccessToken();
?>
&act=ghost_set">On Ghost Mode</a>
<?php
}
?>
</td>
</tr>
<tr>
<td class="text-left">User active chats (not removed):</td>
<td>
<?php
$active_chats = $messages->myActiveChatsCount();
echo $active_chats;
?>
</td>
<td>
<?php
if ($active_chats > 0) {
?>
<a href="/admin/profile_chats.php/?id=<?php
echo $accountInfo['id'];
?>
" >View</a></td>
<?php
}
?>
</tr>
示例2: array
$accountInfo = array();
if (isset($_GET['id'])) {
$accountId = isset($_GET['id']) ? $_GET['id'] : 0;
$account = new account($dbo, $accountId);
$accountInfo = $account->get();
$messages = new messages($dbo);
$messages->setRequestFrom($accountId);
} else {
header("Location: /admin/main.php");
}
if ($accountInfo['error'] === true) {
header("Location: /admin/main.php");
}
$stats = new stats($dbo);
$page_id = "chats";
$inbox_all = $messages->myActiveChatsCount();
$inbox_loaded = 0;
if (!empty($_POST)) {
$itemId = isset($_POST['itemId']) ? $_POST['itemId'] : '';
$loaded = isset($_POST['loaded']) ? $_POST['loaded'] : '';
$itemId = helper::clearInt($itemId);
$loaded = helper::clearInt($loaded);
$result = $messages->getChats($itemId);
$inbox_loaded = count($result['chats']);
$result['inbox_loaded'] = $inbox_loaded + $loaded;
$result['inbox_all'] = $inbox_all;
if ($inbox_loaded != 0) {
ob_start();
foreach ($result['chats'] as $key => $value) {
draw($value, $helper);
}