PHP Class OEModule\OphCoMessaging\controllers\DefaultController

Inheritance: extends BaseEventTypeController
Afficher le fichier Open project: openeyes/openeyes

Méthodes publiques

Свойство Type Description
$show_comment_form boolean

Protected Properties

Свойство Type Description
$action_types
$message_el OEModule\OphCoMessaging\models\Element_OphCoMessaging_Message

Méthodes publiques

Méthode Description
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 ( )

Méthodes protégées

Méthode Description
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.

Method Details

actionAddComment() public méthode

public actionAddComment ( $id )
$id

actionMarkRead() public méthode

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

actionMarkUnread() public méthode

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

actionUserFind() public méthode

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

canComment() public méthode

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

canMarkCommentRead() protected méthode

protected canMarkCommentRead ( $el )

canMarkMessageRead() protected méthode

protected canMarkMessageRead ( $el ) : boolean
$el
Résultat boolean

canMarkRead() public méthode

public canMarkRead ( ) : boolean
Résultat boolean

canMarkUnRead() public méthode

public canMarkUnRead ( ) : boolean
Résultat boolean

checkManageMyMessageAccess() public méthode

Make sure user has clinical access and the user is the recipient of the message.
public checkManageMyMessageAccess ( ) : boolean
Résultat boolean

checkMarkMyMessageAccess() public méthode

Make sure user has clinical access and the user is the recipient of the message.
public checkMarkMyMessageAccess ( ) : boolean
Résultat boolean

getEventViewUrl() public méthode

Convenience wrapper to retrieve event view URL (this should probably be somewhere in core).
public getEventViewUrl ( ) : mixed
Résultat mixed

getMessageElement() protected méthode

Convenience wrapper function.
protected getMessageElement ( ) : Element_OphCoMessaging_Message
Résultat OEModule\OphCoMessaging\models\Element_OphCoMessaging_Message

initActionAddComment() public méthode

Set up event etc on the controller.

initActionMarkRead() public méthode

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

initActionMarkUnread() public méthode

Setup event etc on the controller.

initActionView() public méthode

public initActionView ( )

isIntendedRecipient() protected méthode

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
Résultat boolean

isSender() protected méthode

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
Résultat boolean

markCommentRead() protected méthode

protected markCommentRead ( $el )

markMessageRead() protected méthode

protected markMessageRead ( $el )
$el

redirectAfterAction() protected méthode

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

updateEvent() protected méthode

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

updateEventInfo() protected méthode

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

updateEventIssues() protected méthode

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

Property Details

$action_types protected_oe static_oe property

protected static $action_types

$message_el protected_oe property

protected Element_OphCoMessaging_Message,OEModule\OphCoMessaging\models $message_el
Résultat OEModule\OphCoMessaging\models\Element_OphCoMessaging_Message

$show_comment_form public_oe property

public bool $show_comment_form
Résultat boolean