PHP Класс Phosphorum\Controllers\DiscussionsController

Наследование: extends ControllerBase, use trait Phosphorum\Mvc\Controllers\TokenTrait
Показать файл Открыть проект

Открытые методы

Метод Описание
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