PHP Class FeedbackBackendController

Author: YupeTeam ([email protected])
Inheritance: extends yupe\components\controllers\BackController
ファイルを表示 Open project: yupe/yupe

Public Methods

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

public accessRules ( ) : array
return array

actionAnswer() public method

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

actionCreate() public method

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

actionDelete() public method

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

actionIndex() public method

Manages all models.
public actionIndex ( ) : void
return void

actionUpdate() public method

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

actionView() public method

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

actions() public method

public actions ( ) : array
return array

loadModel() public method

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

saveAnswer() public method

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