getOnlineUsers() публичный статический Метод

public static getOnlineUsers ( $UserID = [], $params = [] )
	</ul>
	<div class="tab-content">
		<div role="tabpanel" class="tab-pane active" id="transferusermodal">
		
    		<h4><?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/transferchat', 'Logged in users');
?>
</h4>
    
      		<p><?php 
echo erTranslationClassLhTranslation::getInstance()->getTranslation('chat/transferchat', 'Transfer a chat to one of your departments users');
?>
</p>
    
      		<?php 
foreach (erLhcoreClassChat::getOnlineUsers(array($user_id)) as $key => $user) {
    ?>
    		<label><input type="radio" name="TransferTo<?php 
    echo $chat->id;
    ?>
" value="<?php 
    echo $user['id'];
    ?>
" <?php 
    echo $key == 0 ? 'checked="checked"' : '';
    ?>
> <?php 
    echo htmlspecialchars($user['name']);
    ?>
 <?php 
    echo htmlspecialchars($user['surname']);
Пример #2
0
<?php

$currentUser = erLhcoreClassUser::instance();
if (!$currentUser->isLogged() && !$currentUser->authenticate($_POST['username'], $_POST['password'])) {
    exit;
}
$onlineUsers = erLhcoreClassChat::getOnlineUsers(array($currentUser->getUserID()));
echo json_encode(array('result' => $onlineUsers));
exit;