PHP Класс OEModule\OphCoMessaging\controllers\DefaultController

Наследование: extends BaseEventTypeController
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$show_comment_form boolean

Защищенные свойства (Protected)

Свойство Тип Описание
$action_types
$message_el OEModule\OphCoMessaging\models\Element_OphCoMessaging_Message

Открытые методы

Метод Описание
actionAddComment ( $id )
actionMarkRead ( $id ) Mark the event message as read.
actionMarkUnread ( $id ) Mark the message event as unread.
actionUserFind ( ) Duplicated from the admin controller to give a user list.
canComment ( OEWebUser $user = null )
canMarkRead ( ) : boolean
canMarkUnRead ( ) : boolean
checkManageMyMessageAccess ( ) : boolean Make sure user has clinical access and the user is the recipient of the message.
checkMarkMyMessageAccess ( ) : boolean Make sure user has clinical access and the user is the recipient of the message.
getEventViewUrl ( ) : mixed Convenience wrapper to retrieve event view URL (this should probably be somewhere in core).
initActionAddComment ( ) Set up event etc on the controller.
initActionMarkRead ( ) Set up event etc on the controller.
initActionMarkUnread ( ) Setup event etc on the controller.
initActionView ( )

Защищенные методы

Метод Описание
canMarkCommentRead ( $el )
canMarkMessageRead ( $el ) : boolean
getMessageElement ( ) : Element_OphCoMessaging_Message Convenience wrapper function.
isIntendedRecipient ( OEWebUser $user = null ) : boolean Determine if the given user (or current if none given) is the intended recipient of the message that is being viewed.
isSender ( OEWebUser $user = null ) : boolean Determine if the given user (or current if none given) is the sender of the message that is being viewed.
markCommentRead ( $el )
markMessageRead ( $el )
redirectAfterAction ( ) Convenience function for performing redirect once a message has been manipulated.
updateEvent ( ) Set the event info text without the open_elements attribute being set.
updateEventInfo ( ) Extend the parent method to set event issue data based on user selection.
updateEventIssues ( ) Set the urgent issue (or otherwise) at the event level.

Описание методов

actionAddComment() публичный Метод

public actionAddComment ( $id )
$id

actionMarkRead() публичный Метод

Mark the event message as read.
public actionMarkRead ( $id )
$id

actionMarkUnread() публичный Метод

Mark the message event as unread.
public actionMarkUnread ( $id )
$id

actionUserFind() публичный Метод

Duplicated from the admin controller to give a user list.
public actionUserFind ( )

canComment() публичный Метод

public canComment ( OEWebUser $user = null )
$user OEWebUser

canMarkCommentRead() защищенный Метод

protected canMarkCommentRead ( $el )

canMarkMessageRead() защищенный Метод

protected canMarkMessageRead ( $el ) : boolean
$el
Результат boolean

canMarkRead() публичный Метод

public canMarkRead ( ) : boolean
Результат boolean

canMarkUnRead() публичный Метод

public canMarkUnRead ( ) : boolean
Результат boolean

checkManageMyMessageAccess() публичный Метод

Make sure user has clinical access and the user is the recipient of the message.
public checkManageMyMessageAccess ( ) : boolean
Результат boolean

checkMarkMyMessageAccess() публичный Метод

Make sure user has clinical access and the user is the recipient of the message.
public checkMarkMyMessageAccess ( ) : boolean
Результат boolean

getEventViewUrl() публичный Метод

Convenience wrapper to retrieve event view URL (this should probably be somewhere in core).
public getEventViewUrl ( ) : mixed
Результат mixed

getMessageElement() защищенный Метод

Convenience wrapper function.
protected getMessageElement ( ) : Element_OphCoMessaging_Message
Результат OEModule\OphCoMessaging\models\Element_OphCoMessaging_Message

initActionAddComment() публичный Метод

Set up event etc on the controller.

initActionMarkRead() публичный Метод

Set up event etc on the controller.
public initActionMarkRead ( )

initActionMarkUnread() публичный Метод

Setup event etc on the controller.

initActionView() публичный Метод

public initActionView ( )

isIntendedRecipient() защищенный Метод

Determine if the given user (or current if none given) is the intended recipient of the message that is being viewed.
protected isIntendedRecipient ( OEWebUser $user = null ) : boolean
$user OEWebUser
Результат boolean

isSender() защищенный Метод

Determine if the given user (or current if none given) is the sender of the message that is being viewed.
protected isSender ( OEWebUser $user = null ) : boolean
$user OEWebUser
Результат boolean

markCommentRead() защищенный Метод

protected markCommentRead ( $el )

markMessageRead() защищенный Метод

protected markMessageRead ( $el )
$el

redirectAfterAction() защищенный Метод

Convenience function for performing redirect once a message has been manipulated.
protected redirectAfterAction ( )

updateEvent() защищенный Метод

Set the event info text without the open_elements attribute being set.
protected updateEvent ( )

updateEventInfo() защищенный Метод

Extend the parent method to set event issue data based on user selection.
protected updateEventInfo ( )

updateEventIssues() защищенный Метод

Set the urgent issue (or otherwise) at the event level.
protected updateEventIssues ( )

Описание свойств

$action_types защищенное статическое свойство

protected static $action_types

$message_el защищенное свойство

protected Element_OphCoMessaging_Message,OEModule\OphCoMessaging\models $message_el
Результат OEModule\OphCoMessaging\models\Element_OphCoMessaging_Message

$show_comment_form публичное свойство

public bool $show_comment_form
Результат boolean