PHP Class FeedbackBackendController

Author: YupeTeam ([email protected])
Inheritance: extends yupe\components\controllers\BackController
Afficher le fichier Open project: yupe/yupe

Méthodes publiques

Méthode Description
accessRules ( ) : array
actionAnswer ( integer $id = null ) : void Экшен создания ответа на сообщение:
actionCreate ( ) : void Creates a new model.
actionDelete ( ) : void Deletes a particular model.
actionIndex ( ) : void Manages all models.
actionUpdate ( integer $id = null ) : void Updates a particular model.
actionView ( integer $id = null ) : void Displays a particular model.
actions ( ) : array
loadModel ( integer $id = null ) : FeedBack Returns the data model based on the primary key given in the GET variable.
saveAnswer ( AnswerForm $form, FeedBack $model ) : mixed Сохраняем данные в СУБД, при наявности POST-запросаЖ

Method Details

accessRules() public méthode

public accessRules ( ) : array
Résultat array

actionAnswer() public méthode

Экшен создания ответа на сообщение:
public actionAnswer ( integer $id = null ) : void
$id integer - ID сообщения
Résultat void

actionCreate() public méthode

If creation is successful, the browser will be redirected to the 'view' page.
public actionCreate ( ) : void
Résultat void

actionDelete() public méthode

If deletion is successful, the browser will be redirected to the 'index' page.
public actionDelete ( ) : void
Résultat void

actionIndex() public méthode

Manages all models.
public actionIndex ( ) : void
Résultat void

actionUpdate() public méthode

If update is successful, the browser will be redirected to the 'view' page.
public actionUpdate ( integer $id = null ) : void
$id integer - record $id
Résultat void

actionView() public méthode

Displays a particular model.
public actionView ( integer $id = null ) : void
$id integer - record id
Résultat void

actions() public méthode

public actions ( ) : array
Résultat array

loadModel() public méthode

If the data model is not found, an HTTP exception will be raised.
public loadModel ( integer $id = null ) : FeedBack
$id integer - record value
Résultat FeedBack $model

saveAnswer() public méthode

Сохраняем данные в СУБД, при наявности POST-запросаЖ
public saveAnswer ( AnswerForm $form, FeedBack $model ) : mixed
$form AnswerForm - форма ответа
$model FeedBack - модель
Résultat mixed