PHP Class CommentsController, miniPHP

Inheritance: extends AppController
Afficher le fichier Open project: omarelgabry/miniphp Class Usage Examples

Méthodes publiques

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

public beforeAction ( )

create() public méthode

public create ( )

delete() public méthode

public delete ( )

getAll() public méthode

get all comments
public getAll ( )

getById() public méthode

get comment by Id
public getById ( )

getUpdateForm() public méthode

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

public isAuthorized ( )

update() public méthode

update comment
public update ( )