PHP Class frontend\modules\topic\controllers\DefaultController

Inheritance: extends common\components\Controller
显示文件 Open project: iiyii/getyii

Public Properties

Property Type Description
$sorts

Public Methods

Method Description
actionCreate ( ) : mixed 新建话题
actionDelete ( $id ) : Response 伪删除
actionExcellent ( $id ) : Response 加精华
actionIndex ( ) : mixed 话题列表
actionRevoke ( $id ) : Response 撤消删除
actionSearch ( )
actionUpdate ( integer $id ) : string | Response 修改自己的话题
actionView ( integer $id ) : mixed 话题详细页
behaviors ( )

Method Details

actionCreate() public method

新建话题
public actionCreate ( ) : mixed
return mixed

actionDelete() public method

伪删除
public actionDelete ( $id ) : Response
$id
return yii\web\Response

actionExcellent() public method

加精华
public actionExcellent ( $id ) : Response
$id
return yii\web\Response

actionIndex() public method

话题列表
public actionIndex ( ) : mixed
return mixed

actionRevoke() public method

撤消删除
public actionRevoke ( $id ) : Response
$id
return yii\web\Response

actionSearch() public method

public actionSearch ( )

actionUpdate() public method

修改自己的话题
public actionUpdate ( integer $id ) : string | Response
$id integer
return string | yii\web\Response

actionView() public method

话题详细页
public actionView ( integer $id ) : mixed
$id integer
return mixed

behaviors() public method

public behaviors ( )

Property Details

$sorts public_oe property

public $sorts