PHP Class Home\Controller\BaseController

Inheritance: extends Common\Controller\CommonController
Afficher le fichier Open project: star7th/showdoc Class Usage Examples

Méthodes publiques

Méthode Description
checkLogin ( $redirect = true )
message ( $msg, $redirect = '' )
sendResult ( $array ) 返回json数据

Méthodes protégées

Méthode Description
checkItemCreator ( $uid, $item_id ) 判断某用户是否为项目创建者
checkItemPermn ( $uid, $item_id ) 判断某用户是否有项目管理权限(项目成员member_group_id为1,以及 项目创建者)
checkItemVisit ( $uid, $item_id, $refer_url = '' ) 判断某用户是否有项目访问权限(公开项目的话所有人可访问,私有项目则项目成员、项目创建者和访问密码输入者可访问)

Method Details

checkItemCreator() protected méthode

判断某用户是否为项目创建者
protected checkItemCreator ( $uid, $item_id )

checkItemPermn() protected méthode

判断某用户是否有项目管理权限(项目成员member_group_id为1,以及 项目创建者)
protected checkItemPermn ( $uid, $item_id )

checkItemVisit() protected méthode

判断某用户是否有项目访问权限(公开项目的话所有人可访问,私有项目则项目成员、项目创建者和访问密码输入者可访问)
protected checkItemVisit ( $uid, $item_id, $refer_url = '' )

checkLogin() public méthode

public checkLogin ( $redirect = true )

message() public méthode

public message ( $msg, $redirect = '' )

sendResult() public méthode

返回json数据
public sendResult ( $array )