PHP Class frontend\modules\user\controllers\DefaultController

Inheritance: extends common\components\Controller
Datei anzeigen Open project: iiyii/getyii

Public Methods

Method Description
actionFavorite ( string $username = '' ) : string 最新收藏
actionIndex ( )
actionLike ( $username ) : string
actionPoint ( $username = '' )
actionPost ( string $username = '' ) : string 最近主题
actionShow ( string $username = '' ) : Response Shows user's profile.

Protected Methods

Method Description
comment ( $userId )
user ( $username = '' )
userMeta ( $userId, $type, string $targetType = 'topic' ) : ActiveDataProvider

Method Details

actionFavorite() public method

最新收藏
public actionFavorite ( string $username = '' ) : string
$username string
return string

actionIndex() public method

public actionIndex ( )

actionLike() public method

public actionLike ( $username ) : string
$username
return string

actionPoint() public method

public actionPoint ( $username = '' )

actionPost() public method

最近主题
public actionPost ( string $username = '' ) : string
$username string
return string

actionShow() public method

Shows user's profile.
public actionShow ( string $username = '' ) : Response
$username string
return yii\web\Response

comment() protected method

protected comment ( $userId )

user() protected method

protected user ( $username = '' )

userMeta() protected method

protected userMeta ( $userId, $type, string $targetType = 'topic' ) : ActiveDataProvider
$userId
$type
$targetType string
return yii\data\ActiveDataProvider