dialogMessageManager
Table of Contents
-
COL_AUTHOR_EMPLOYEE
= 'author_employee'
-
COL_AUTHOR_USER
= 'author_user'
-
COL_CREATE_DT
= 'create_dt'
-
COL_DIALOG
= 'dialog'
-
COL_STATUS
= 'status'
-
EVENT_ADD_NEW_MESSAGE
= 'feedback.module.event.add.new.message'
-
TABLE_NAME
= 'messages'
-
$database
: Explorer
-
$modelHooks
: ModelHooks
-
__construct()
: mixed
-
add()
: ActiveRow
-
findByDialog()
: Selection
-
get()
: ActiveRow
-
getCountUnreadMessage()
: int
-
getCountUnreadMessageForEmployee()
: int
-
setMarkRead()
: void
COL_AUTHOR_EMPLOYEE
public
mixed
COL_AUTHOR_EMPLOYEE
= 'author_employee'
COL_AUTHOR_USER
public
mixed
COL_AUTHOR_USER
= 'author_user'
COL_CREATE_DT
public
mixed
COL_CREATE_DT
= 'create_dt'
COL_DIALOG
public
mixed
COL_DIALOG
= 'dialog'
COL_STATUS
public
mixed
COL_STATUS
= 'status'
EVENT_ADD_NEW_MESSAGE
public
mixed
EVENT_ADD_NEW_MESSAGE
= 'feedback.module.event.add.new.message'
TABLE_NAME
public
mixed
TABLE_NAME
= 'messages'
$database
private
Explorer
$database
$modelHooks
private
ModelHooks
$modelHooks
__construct()
public
__construct(Explorer $database, ModelHooks $modelHooks) : mixed
Parameters
-
$database
: Explorer
-
-
$modelHooks
: ModelHooks
-
Return values
mixed
—
add()
public
add(iteratable<string|int, mixed> $values) : ActiveRow
Parameters
-
$values
: iteratable<string|int, mixed>
-
Return values
ActiveRow
—
findByDialog()
public
findByDialog(string $dialogUuid) : Selection
Parameters
-
$dialogUuid
: string
-
-
throws
-
InvalidUuidException
Return values
Selection
—
get()
public
get(string $uuid) : ActiveRow
Parameters
-
$uuid
: string
-
-
throws
-
InvalidUuidException
-
throws
-
MessageNotFoundException
Return values
ActiveRow
—
getCountUnreadMessage()
public
getCountUnreadMessage([array<string|int, mixed> $structuresIds = null ][, int $employeeId = null ]) : int
Parameters
-
$structuresIds
: array<string|int, mixed>
= null
-
-
$employeeId
: int
= null
-
Return values
int
—
getCountUnreadMessageForEmployee()
public
getCountUnreadMessageForEmployee(string $uuid) : int
Parameters
-
$uuid
: string
-
Return values
int
—
setMarkRead()
public
setMarkRead(string $uuid) : void
Parameters
-
$uuid
: string
-
-
throws
-
InvalidUuidException
-
throws
-
MessageNotFoundException
Return values
void
—