PHP 클래스 OEModule\OphCoMessaging\controllers\DefaultController

상속: extends BaseEventTypeController
파일 보기 프로젝트 열기: openeyes/openeyes

공개 프로퍼티들

프로퍼티 타입 설명
$show_comment_form boolean

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

checkMarkMyMessageAccess() 공개 메소드

Make sure user has clinical access and the user is the recipient of the message.

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