controller
in package
Table of Contents
Properties
- $action : mixed
- 请求方法名 index
- $add_success_msg : mixed
- 添加操作成功提示
- $allow_action : mixed
- 允许访问的方法
- $controller : mixed
- 请求控制器名 user
- $edit_success_msg : mixed
- 修改操作成功提示
- $gid : mixed
- 用户标识
- $input : mixed
- 请求参数
- $is_guest : mixed
- 是否访客可访问
- $model : mixed
- model类字符串,如\core\sys\model\user
- $model_class : mixed
- new model返回的实例,用于查寻、添加、修改操作 如 $this->model_class->find(id)
- $module : mixed
- 请求模块名 如 employee
- $package : mixed
- 请求的包名,如core app
- $relation : mixed
- 开启关联查寻
- $site_id : mixed
- 站点ID
- $user_id : mixed
- 用户ID
- $user_info : mixed
- 用户信息
- $where : mixed
- 分页要条件
Methods
- __construct() : mixed
- 构造函数
- action_add() : mixed
- 添加
- action_edit() : mixed
- 编辑
- action_index() : mixed
- 首页
- action_pager() : mixed
- 分页显示
- delete() : mixed
- 软删除
- view() : mixed
- 显示视图
- init() : mixed
- 初始化
- pager_data() : mixed
- 分页显示数据库
- pager_where() : mixed
- 分页条件
Properties
$action
请求方法名 index
protected
mixed
$action
$add_success_msg
添加操作成功提示
protected
mixed
$add_success_msg
= '操作成功'
$allow_action
允许访问的方法
protected
mixed
$allow_action
= []
$controller
请求控制器名 user
protected
mixed
$controller
$edit_success_msg
修改操作成功提示
protected
mixed
$edit_success_msg
= '操作成功'
$gid
用户标识
protected
mixed
$gid
$input
请求参数
protected
mixed
$input
$is_guest
是否访客可访问
protected
mixed
$is_guest
= false
$model
model类字符串,如\core\sys\model\user
protected
mixed
$model
$model_class
new model返回的实例,用于查寻、添加、修改操作 如 $this->model_class->find(id)
protected
mixed
$model_class
$module
请求模块名 如 employee
protected
mixed
$module
$package
请求的包名,如core app
protected
mixed
$package
$relation
开启关联查寻
protected
mixed
$relation
= false
$site_id
站点ID
protected
mixed
$site_id
$user_id
用户ID
protected
mixed
$user_id
$user_info
用户信息
protected
mixed
$user_info
$where
分页要条件
protected
mixed
$where
= []
Methods
__construct()
构造函数
public
__construct() : mixed
action_add()
添加
public
action_add() : mixed
action_edit()
编辑
public
action_edit() : mixed
action_index()
首页
public
action_index() : mixed
action_pager()
分页显示
public
action_pager() : mixed
delete()
软删除
public
delete() : mixed
view()
显示视图
public
view(mixed $name[, mixed $par = [] ]) : mixed
Parameters
- $name : mixed
- $par : mixed = []
init()
初始化
protected
init() : mixed
pager_data()
分页显示数据库
protected
pager_data(mixed &$data) : mixed
Parameters
- $data : mixed
pager_where()
分页条件
protected
pager_where(mixed &$where) : mixed
Parameters
- $where : mixed