PHP Class CommentsController, miniPHP

Inheritance: extends AppController
Mostrar archivo Open project: omarelgabry/miniphp Class Usage Examples

Public Methods

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

Method Details

beforeAction() public method

public beforeAction ( )

create() public method

public create ( )

delete() public method

public delete ( )

getAll() public method

get all comments
public getAll ( )

getById() public method

get comment by Id
public getById ( )

getUpdateForm() public method

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 method

public isAuthorized ( )

update() public method

update comment
public update ( )