public
|
#
__construct( CApiGlobalManager & $oManager )
|
protected
CHelpdeskUser |false
|
#
_getUserBySql( string $sSql )
|
public
boolean
|
#
createUser( CHelpdeskUser & $oHelpdeskUser )
Parameters
Returns
boolean
|
public
CHelpdeskUser |false
|
#
getUserById( integer $iIdTenant, integer $iHelpdeskUserId )
Parameters
- $iIdTenant
- $iHelpdeskUserId
Returns
|
public
CHelpdeskUser |false
|
#
getUserByIdWithoutTenantID( integer $iHelpdeskUserId )
|
public
CHelpdeskUser |null|false
|
#
getUserByEmail( integer $iIdTenant, string $sEmail )
|
public
CHelpdeskUser |null|false
|
#
getUserByNotificationEmail( integer $iIdTenant, string $sEmail )
|
public
|
#
getUserBySocialId( $iIdTenant, $sSocialId )
|
public
CHelpdeskUser |false
|
#
getUserByActivateHash( integer $iIdTenant, string $sActivateHash )
Parameters
- $iIdTenant
- $sActivateHash
Returns
|
public
array
|
#
getAgentsEmailsForNotification( integer $iIdTenant, array $aExcludeEmails = array() )
Parameters
- $iIdTenant
- $aExcludeEmails
- Default value is empty array.
Returns
array
|
public
integer|boolean
|
#
getNextHelpdeskIdForMonitoring( integer $iLimitAddInMin = 5 )
Parameters
- $iLimitAddInMin
- Default value is 5.
Returns
integer|boolean
|
public
integer
|
#
getHelpdeskMailboxLastUid( integer $iIdTenant, string $sEmail )
Parameters
Returns
integer
|
public
boolean
|
#
setHelpdeskMailboxLastUid( integer $iIdTenant, string $sEmail, integer $iLastUid )
Parameters
- $iIdTenant
- $sEmail
- $iLastUid
Returns
boolean
|
public
boolean
|
#
updateHelpdeskFetcherTimer( integer $iIdTenant )
Parameters
Returns
boolean
|
public
boolean
|
#
isUserExists( CHelpdeskUser $oHelpdeskUser )
Parameters
Returns
boolean
|
public
array|boolean
|
#
userInformation( CHelpdeskUser $oHelpdeskUser, array $aIdList )
Parameters
Returns
array|boolean
|
public
boolean
|
#
updateUser( CHelpdeskUser $oHelpdeskUser )
Parameters
Returns
boolean
|
public
boolean
|
#
setUserAsBlocked( integer $iIdTenant, integer $iIdHelpdeskUser )
Parameters
- $iIdTenant
- $iIdHelpdeskUser
Returns
boolean
|
public
boolean
|
#
deleteUser( integer $iIdTenant, integer $iIdHelpdeskUser )
Parameters
- $iIdTenant
- $iIdHelpdeskUser
Returns
boolean
|
public
boolean
|
#
deletePosts( CHelpdeskUser $oHelpdeskUser, CHelpdeskThread $oThread, array $aPostIds )
Parameters
- $oHelpdeskUser
- $oThread
- $aPostIds
Returns
boolean
|
public
boolean
|
#
clearUnregistredUsers( )
|
public
boolean
|
#
addAttachments( CHelpdeskUser $oHelpdeskUser, CHelpdeskThread $oHelpdeskThread, CHelpdeskPost $oHelpdeskPost, array $aAttachments )
Parameters
- $oHelpdeskUser
- $oHelpdeskThread
- $oHelpdeskPost
- $aAttachments
Returns
boolean
|
public
boolean
|
#
verifyThreadIdsBelongToUser( CHelpdeskUser $oHelpdeskUser, array $aThreadIds )
Parameters
- $oHelpdeskUser
- $aThreadIds
Returns
boolean
|
public
boolean
|
#
verifyPostIdsBelongToUser( CHelpdeskUser $oHelpdeskUser, array $aPostIds )
Parameters
Returns
boolean
|
public
boolean
|
#
archiveThreads( CHelpdeskUser $oHelpdeskUser, array $aThreadIds, boolean $bSetArchive = true )
Parameters
- $oHelpdeskUser
- $aThreadIds
- $bSetArchive
- Default value is true.
Returns
boolean
|
public
boolean
|
#
archiveOutdatedThreads( )
|
public
boolean
|
#
notificateOutdatedThreadID( integer & $iIdOwner )
Parameters
Returns
boolean
|
public
CHelpdeskThread |false
|
#
getThreadById( CHelpdeskUser $oHelpdeskUser, integer $iIdThread )
Parameters
- $oHelpdeskUser
- $iIdThread
Returns
|
public
integer
|
#
getThreadIdByHash( integer $iTenantID, string $sHash )
Parameters
Returns
integer
|
public
boolean
|
|
public
boolean
|
|
public
integer
|
#
getThreadsCount( CHelpdeskUser $oHelpdeskUser, integer $iFilter = EHelpdeskThreadFilterType::All , string $sSearch = '', integer $iSearchOwner = 0 )
Parameters
- $oHelpdeskUser
- $iFilter
- Default value is 0 EHelpdeskThreadFilterType::All.
- $sSearch
- Default value is empty string.
- $iSearchOwner
- Default value is 0.
Returns
integer
|
public
integer
|
#
getThreadsPendingCount( integer $iTenantId )
Parameters
- $iTenantId
- Default value is 0.
Returns
integer
|
public
array|boolean
|
#
getThreads( CHelpdeskUser $oHelpdeskUser, integer $iOffset = 0, integer $iLimit = 20, integer $iFilter = EHelpdeskThreadFilterType::All , string $sSearch = '', integer $iSearchOwner = 0 )
Parameters
- $oHelpdeskUser
- $iOffset
- Default value is 0.
- $iLimit
- Default value is 20.
- $iFilter
- Default value is 0 EHelpdeskThreadFilterType::All.
- $sSearch
- Default value is empty string.
- $iSearchOwner
- Default value is 0.
Returns
array|boolean
|
public
integer
|
|
public
integer
|
|
public
array|boolean
|
#
getThreadsLastPostIds( CHelpdeskUser $oHelpdeskUser, array $aThreadIds )
Parameters
- $oHelpdeskUser
- $aThreadIds
Returns
array|boolean
|
public
array|boolean
|
#
getAttachments( CHelpdeskUser $oHelpdeskUser, CHelpdeskThread $oHelpdeskThread )
Parameters
- $oHelpdeskUser
- $oHelpdeskThread
Returns
array|boolean
|
public
array|boolean
|
#
getPosts( CHelpdeskUser $oHelpdeskUser, CHelpdeskThread $oThread, integer $iStartFromId = 0, integer $iLimit = 20 )
Parameters
- $oHelpdeskUser
- $oThread
- $iStartFromId
- Default value is 0.
- $iLimit
- Default value is 20.
Returns
array|boolean
|
public
boolean
|
|
public
array|boolean
|
#
getOnline( CHelpdeskUser $oHelpdeskUser, $iThreadID )
Parameters
- $oHelpdeskUser
- $iThreadID
- $iThreadID
Returns
array|boolean
|
public
boolean
|
#
clearAllOnline( integer $iTimeoutInMin = 15 )
Parameters
- $iTimeoutInMin
- Default value is 15.
Returns
boolean
|
public
boolean
|
#
setOnline( CHelpdeskUser $oHelpdeskUser, integer $iThreadID )
Parameters
- $oHelpdeskUser
- $iThreadID
Returns
boolean
|
public
boolean
|
|