PHP Класс CommentsController, miniPHP

Наследование: extends AppController
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
beforeAction ( )
create ( )
delete ( )
getAll ( ) get all comments
getById ( ) get comment by Id
getUpdateForm ( ) whenever the user hits 'edit' button, a request will be sent to get the update form of that comment, so that the user can 'update' or even 'cancel' the edit request.
isAuthorized ( )
update ( ) update comment

Описание методов

beforeAction() публичный Метод

public beforeAction ( )

create() публичный Метод

public create ( )

delete() публичный Метод

public delete ( )

getAll() публичный Метод

get all comments
public getAll ( )

getById() публичный Метод

get comment by Id
public getById ( )

getUpdateForm() публичный Метод

whenever the user hits 'edit' button, a request will be sent to get the update form of that comment, so that the user can 'update' or even 'cancel' the edit request.
public getUpdateForm ( )

isAuthorized() публичный Метод

public isAuthorized ( )

update() публичный Метод

update comment
public update ( )