PHP 클래스 MessagesController, vanilla

상속: extends GardenController
파일 보기 프로젝트 열기: vanilla/vanilla 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$ConversationModel ConversationModel
$Form Gdn_Form
$Offset The current offset of the paged data set. Defined and used by $this->Index and $this->All.
$RecipientData A dataset of users taking part in this discussion. Used by $this->Index.
$Uses Models to include.

공개 메소드들

메소드 설명
add ( string $Recipient = '', string $Subject = '' ) Start a new conversation.
addMessage ( integer $ConversationID = '' ) Add a message to a conversation.
all ( string $Page = '' ) Show all conversations for the currently authenticated user.
bookmark ( integer $ConversationID = '', string $TransientKey = '' ) Allows users to bookmark conversations.
clear ( integer $ConversationID = false, string $TransientKey = '' ) Clear the message history for a specific conversation & user.
getNew ( $ConversationID, null $LastMessageID = null )
inbox ( string $Page = '' ) Show bookmarked conversations for the current user.
index ( integer $ConversationID = false, integer $Offset, integer $Limit = '' ) Shows all uncleared messages within a conversation for the viewing user
initialize ( ) Highlight route and include JS, CSS, and modules used by all methods.
leave ( integer $conversationID ) Leave a conversation that a user is participating in.
popin ( )

메소드 상세

add() 공개 메소드

Start a new conversation.
부터: 2.0.0
public add ( string $Recipient = '', string $Subject = '' )
$Recipient string Username of the recipient.
$Subject string Subject of the message.

addMessage() 공개 메소드

Add a message to a conversation.
부터: 2.0.0
public addMessage ( integer $ConversationID = '' )
$ConversationID integer Unique ID of the conversation.

all() 공개 메소드

Show all conversations for the currently authenticated user.
부터: 2.0.0
public all ( string $Page = '' )
$Page string The page number argument.

bookmark() 공개 메소드

Allows users to bookmark conversations.
public bookmark ( integer $ConversationID = '', string $TransientKey = '' )
$ConversationID integer Unique ID of conversation to view.
$TransientKey string Single-use hash to prove intent.

clear() 공개 메소드

Clear the message history for a specific conversation & user.
public clear ( integer $ConversationID = false, string $TransientKey = '' )
$ConversationID integer Unique ID of conversation to clear.
$TransientKey string The CSRF token.

getNew() 공개 메소드

public getNew ( $ConversationID, null $LastMessageID = null )
$ConversationID
$LastMessageID null

inbox() 공개 메소드

Show bookmarked conversations for the current user.
public inbox ( string $Page = '' )
$Page string The page number string.

index() 공개 메소드

Shows all uncleared messages within a conversation for the viewing user
부터: 2.0.0
public index ( integer $ConversationID = false, integer $Offset, integer $Limit = '' )
$ConversationID integer Unique ID of conversation to view.
$Offset integer Number to skip.
$Limit integer Number to show.

initialize() 공개 메소드

Always called by dispatcher before controller's requested method.
부터: 2.0.0
public initialize ( )

leave() 공개 메소드

Leave a conversation that a user is participating in.
public leave ( integer $conversationID )
$conversationID integer The ID of the conversation to leave.

popin() 공개 메소드

public popin ( )

프로퍼티 상세

$ConversationModel 공개적으로 프로퍼티

public ConversationModel $ConversationModel
리턴 ConversationModel

$Form 공개적으로 프로퍼티

public Gdn_Form $Form
리턴 Gdn_Form

$Offset 공개적으로 프로퍼티

The current offset of the paged data set. Defined and used by $this->Index and $this->All.
public $Offset

$RecipientData 공개적으로 프로퍼티

A dataset of users taking part in this discussion. Used by $this->Index.
public $RecipientData

$Uses 공개적으로 프로퍼티

Models to include.
public $Uses