PHP Class Phosphorum\Controllers\DiscussionsController

Inheritance: extends ControllerBase, use trait Phosphorum\Mvc\Controllers\TokenTrait
Afficher le fichier Open project: phalcon/forum

Méthodes publiques

Méthode 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 méthode

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

createAction() public méthode

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

deleteAction() public méthode

Deletes the Post
public deleteAction ( integer $id ) : Phalcon\Http\ResponseInterface
$id integer
Résultat Phalcon\Http\ResponseInterface

editAction() public méthode

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

findRelatedAction() public méthode

Finds related posts
public findRelatedAction ( ) : Phalcon\Http\ResponseInterface
Résultat Phalcon\Http\ResponseInterface

historyAction() public méthode

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

indexAction() public méthode

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

ircAction() public méthode

Shows the latest activity on the IRC
public ircAction ( )

notificationsAction() public méthode

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

searchAction() public méthode

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

showRelatedAction() public méthode

Finds related posts
public showRelatedAction ( )

stickAction() public méthode

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

subscribeAction() public méthode

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

unstickAction() public méthode

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

unsubscribeAction() public méthode

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

viewAction() public méthode

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

voteDownAction() public méthode

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

voteUpAction() public méthode

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