models/User.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\User

Package: Models
User
Parent(s)
\Zend_Db_Table
Access
public  
Author
Alexander  
Copyright
2012  
Version
$Id$  

Properties

>VPropertyprotectedstring $_name = 'users'
table name
Default value'users'Details
Type
string

Methods

methodpublicgetById( $id) : \Zend_Db_Table_Row

Get User object by ID

Parameters
NameTypeDescription
$id
Returns
TypeDescription
\Zend_Db_Table_Row
methodpublicgetOfflineInterviewersIds() : array

returned array of Ids of offline interviewers!

Returns
TypeDescription
array
methodpublicgetOnlineMap() : array

List of non-interviewers who not OFFLINE now

Returns
TypeDescription
array
Throws
ExceptionDescription
\Zend_Exception
methodpublicgetUsersList(array $roles = null, integer $groupId = 0) : array

User::getUsersList() Getting all users

Parameters
NameTypeDescription
$rolesarray
$groupIdinteger
Returns
TypeDescription
array
methodpublicgetUsersListShort(boolean $onlineOnly = false, boolean $showMe = true,  $roles = array()) : \array[user_id]=array()

Get realname, is_online, role

Parameters
NameTypeDescription
$onlineOnlyboolean
  • true=only onlune status
$showMeboolean
  • id true - show loggined user, if false - skiped it.
$roles
Returns
TypeDescription
\array[user_id]=array()
methodpubliconline( $id) : string

Returned on-line status

Parameters
NameTypeDescription
$id
Returns
TypeDescription
string
methodpublicupdateActivityTime(integer $userId) : void

Update last activity time for user

Parameters
NameTypeDescription
$userIdinteger
Documentation was generated by phpDocumentor 2.8.5.