메소드 |
설명 |
|
canReopen ( erLhcoreClassModelChat $chat, $skipStatusCheck = false ) |
|
|
canReopenDirectly ( $params = [] ) |
|
|
closeChatCallback ( $chat, $operator = false ) |
|
|
formatDate ( $ts ) |
|
|
formatSeconds ( $seconds ) |
|
|
generateHash ( ) |
|
|
getActiveChats ( $limit = 50, $offset, $filterAdditional = [] ) |
|
|
getActiveChatsCount ( $filterAdditional = [] ) |
|
|
getAdjustment ( $geo_adjustment, $onlineUserVid = '', $widgetMode = false, $onlineUserDefined = false ) |
|
|
getChatDurationToUpdateChatID ( $chatID ) |
|
|
getChatMessages ( $chat_id ) |
Gets chats messages, used to review chat etc. |
|
getClosedChats ( $limit = 50, $offset, $filterAdditional = [] ) |
|
|
getClosedChatsCount ( $filterAdditional = [] ) |
|
|
getCount ( $params = [], $table = 'lh_chat', $operation = 'COUNT(id)' ) |
|
|
getDepartmentLimitation ( $tableName = 'lh_chat', $params = [] ) |
|
|
getFirstUserMessage ( $chat_id ) |
Get first user mesasge for prefilling chat |
|
getGetLastChatMessage ( $chat_id ) |
Get last message for chatbox |
|
getGetLastChatMessageEdit ( $chat_id, $user_id ) |
Get last message for chat editing admin last message |
|
getGetLastChatMessagePending ( $chat_id ) |
Get last message for browser notification |
|
getList ( $paramsSearch = [], $class = 'erLhcoreClassModelChat', $tableName = 'lh_chat' ) |
|
|
getLoggedDepartmentsIds ( $departmentsIds, $exclipic = false ) |
Returns departments with atleast one logged |
|
getOnlineUsers ( $UserID = [], $params = [] ) |
|
|
getOperatorsChats ( $limit = 50, $offset, $filterAdditional = [] ) |
|
|
getOperatorsChatsCount ( $filterAdditional = [] ) |
|
|
getPendingChats ( $limit = 50, $offset, $filterAdditional = [], $filterAdditionalMainAttr = [], $limitationDepartment = [] ) |
Gets pending chats |
|
getPendingChatsCount ( $filterAdditional = [] ) |
|
|
getPendingChatsCountPublic ( $department = false ) |
|
|
getPendingMessages ( $chat_id, $message_id ) |
All messages, which should get administrator/user |
|
getPendingMessagesChatbox ( $chat_id, $message_id ) |
All messages, which should get administrator/user for chatbox |
|
getRandomOnlineUserID ( $params = [] ) |
|
|
getSession ( ) |
|
|
getUnreadMessagesChats ( $limit = 10, $offset, $filterAdditional = [] ) |
Get's unread messages from users |
|
getUnreadMessagesChatsCount ( $filterAdditional = [] ) |
Get's unread messages from users | COUNT |
|
hasAccessToRead ( $chat ) |
|
|
isChatActive ( $chat_id, $hash ) |
Is chat activated and user can send messages. |
|
isOnline ( $dep_id = false, $exclipic = false, $params = [] ) |
|
|
isOnlineUser ( $user_id, $params = [] ) |
|
|
prefillGetAttributes ( &$objects, $attrs = [], $attrRemove = [], $params = [] ) |
Is there any better way to initialize __get variables? |
|
prefillGetAttributesObject ( &$object, $attrs = [], $attrRemove = [], $params = [] ) |
Is there any better way to initialize __get variables? |
|
prefillObjects ( &$objects, $attrs = [], $params = [] ) |
*
Example of call
This method can prefill first and second level objects without
requirement for each object to be fetched separately
Increases performance drastically
erLhcoreClassModuleFunctions::prefillObjects($items, array(
array(
'order_id',
'order',
'dommyClass::getList'
),
array(
'status_id',
'status',
'dommyClass::getList'
),
array(
array(
'order',
'registration_id'
),
array(
'order',
'registration'
),
'dommyClass::getList',
'id'
)
)); |
|
safe_json_encode ( array $value ) |
|
|
setActivityByChatAndOnlineUser ( $chat, erLhcoreClassModelChatOnlineUser $onlineUser ) : integer |
|
|
setOnlineStatus ( $chatLists ) |
Sets chat's status by online visitors records in efficient way |
|
setOnlineStatusDirectly ( $chatLists ) |
Sets chats status directly |
|
setTimeZoneByChat ( $chat ) |
|
|
updateActiveChats ( $user_id ) |
|
|
updateDepartmentStats ( $dep ) |
Update department main statistic for frontend |
|
utf8ize ( unknown $mixed ) : string |
Make conversion if required |
|
validateFilterIn ( &$params ) |
|
|