PHP Class Phosphorum\Controllers\DiscussionsController

Inheritance: extends ControllerBase, use trait Phosphorum\Mvc\Controllers\TokenTrait
Datei anzeigen Open project: phalcon/forum

Public Methods

Method Description
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

Method Details

activityAction() public method

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

createAction() public method

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

deleteAction() public method

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

editAction() public method

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

findRelatedAction() public method

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

historyAction() public method

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

indexAction() public method

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

ircAction() public method

Shows the latest activity on the IRC
public ircAction ( )

notificationsAction() public method

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

searchAction() public method

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

showRelatedAction() public method

Finds related posts
public showRelatedAction ( )

stickAction() public method

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

subscribeAction() public method

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

unstickAction() public method

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

unsubscribeAction() public method

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

viewAction() public method

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

voteDownAction() public method

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

voteUpAction() public method

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