PHP 클래스 Phosphorum\Controllers\DiscussionsController

상속: extends ControllerBase, use trait Phosphorum\Mvc\Controllers\TokenTrait
파일 보기 프로젝트 열기: phalcon/forum

공개 메소드들

메소드 설명
activityAction ( $offset ) Shows the latest activity on the forum
createAction ( ) This shows the create post form and also store the related post
deleteAction ( integer $id ) : Phalcon\Http\ResponseInterface Deletes the Post
editAction ( integer $id ) This shows the create post form and also store the related post
findRelatedAction ( ) : Phalcon\Http\ResponseInterface Finds related posts
historyAction ( integer $id ) Shows the latest modification made to a post
indexAction ( string $order = null, integer $offset ) Shows latest posts using an order clause
ircAction ( ) Shows the latest activity on the IRC
notificationsAction ( $offset ) Shows the latest notifications for the current user
searchAction ( ) Perform the search of posts only searching in the title
showRelatedAction ( ) Finds related posts
stickAction ( integer $id ) : Phalcon\Http\ResponseInterface Stick post.
subscribeAction ( string $id ) : Phalcon\Http\ResponseInterface Subscribe to a post to receive e-mail notifications
unstickAction ( integer $id ) : Phalcon\Http\ResponseInterface Unstick post.
unsubscribeAction ( string $id ) : Phalcon\Http\ResponseInterface Unsubscribe from a post of receiving e-mail notifications
viewAction ( integer $id, string $slug = '' ) Displays a post and its comments
voteDownAction ( integer $id ) : Phalcon\Http\ResponseInterface Votes a post down
voteUpAction ( integer $id ) : Phalcon\Http\ResponseInterface Votes a post up

메소드 상세

activityAction() 공개 메소드

Shows the latest activity on the forum
public activityAction ( $offset )

createAction() 공개 메소드

This shows the create post form and also store the related post
public createAction ( )

deleteAction() 공개 메소드

Deletes the Post
public deleteAction ( integer $id ) : Phalcon\Http\ResponseInterface
$id integer
리턴 Phalcon\Http\ResponseInterface

editAction() 공개 메소드

This shows the create post form and also store the related post
public editAction ( integer $id )
$id integer Post ID

findRelatedAction() 공개 메소드

Finds related posts
public findRelatedAction ( ) : Phalcon\Http\ResponseInterface
리턴 Phalcon\Http\ResponseInterface

historyAction() 공개 메소드

Shows the latest modification made to a post
public historyAction ( integer $id )
$id integer The Post id.

indexAction() 공개 메소드

Shows latest posts using an order clause
public indexAction ( string $order = null, integer $offset )
$order string
$offset integer

ircAction() 공개 메소드

Shows the latest activity on the IRC
public ircAction ( )

notificationsAction() 공개 메소드

Shows the latest notifications for the current user
public notificationsAction ( $offset )

searchAction() 공개 메소드

Perform the search of posts only searching in the title
public searchAction ( )

showRelatedAction() 공개 메소드

Finds related posts
public showRelatedAction ( )

stickAction() 공개 메소드

Stick post.
public stickAction ( integer $id ) : Phalcon\Http\ResponseInterface
$id integer Post ID
리턴 Phalcon\Http\ResponseInterface

subscribeAction() 공개 메소드

Subscribe to a post to receive e-mail notifications
public subscribeAction ( string $id ) : Phalcon\Http\ResponseInterface
$id string
리턴 Phalcon\Http\ResponseInterface

unstickAction() 공개 메소드

Unstick post.
public unstickAction ( integer $id ) : Phalcon\Http\ResponseInterface
$id integer Post ID
리턴 Phalcon\Http\ResponseInterface

unsubscribeAction() 공개 메소드

Unsubscribe from a post of receiving e-mail notifications
public unsubscribeAction ( string $id ) : Phalcon\Http\ResponseInterface
$id string
리턴 Phalcon\Http\ResponseInterface

viewAction() 공개 메소드

Displays a post and its comments
public viewAction ( integer $id, string $slug = '' )
$id integer Post ID
$slug string Post slug [Optional]

voteDownAction() 공개 메소드

Votes a post down
public voteDownAction ( integer $id ) : Phalcon\Http\ResponseInterface
$id integer The post ID.
리턴 Phalcon\Http\ResponseInterface

voteUpAction() 공개 메소드

Votes a post up
public voteUpAction ( integer $id ) : Phalcon\Http\ResponseInterface
$id integer The post ID.
리턴 Phalcon\Http\ResponseInterface