\app\admin\controller\userAdminLog

Summary

Methods
Properties
Constants
__construct()
_initialize()
index()
add()
editshow()
edit()
del()
No public properties found
No constants found
loadlang()
success()
error()
result()
preExcludeFields()
$request
$noNeedLogin
$noNeedRight
$beforeActionList
$auth
$responseType
$searchFields
$excludeFields
$model
N/A
No private methods found
No private properties found
N/A

Properties

$request

$request : \think\facade\Request

Type

\think\facade\Request — Request 实例

$noNeedLogin

$noNeedLogin : array

无需登录的方法,同时也就不需要鉴权了

Type

array

$noNeedRight

$noNeedRight : array

无需鉴权的方法,但需要登录

Type

array

$beforeActionList

$beforeActionList : array

Type

array — 前置操作方法列表

$responseType

$responseType : string

默认响应输出类型,支持json/xml

Type

string

$searchFields

$searchFields : 

Type

$excludeFields

$excludeFields : 

Type

$model

$model : 

Type

Methods

__construct()

__construct() 

构造方法

_initialize()

_initialize() 

初始化操作

index()

index() 

获取基本信息

add()

add() 

添加

editshow()

editshow(  $ids = null) 

编辑

Parameters

$ids

edit()

edit(  $ids = null) 

Parameters

$ids

del()

del(  $ids = "") 

删除

Parameters

$ids

loadlang()

loadlang(string  $name) 

加载语言文件

Parameters

string $name

success()

success(string  $msg = '', mixed  $data = null, integer  $code = 1, string  $type = null, array  $header = array()) 

操作成功返回的数据

Parameters

string $msg

提示信息

mixed $data

要返回的数据

integer $code

错误码,默认为1

string $type

输出类型

array $header

发送的 Header 信息

error()

error(string  $msg = '', mixed  $data = null, integer  $code, string  $type = null, array  $header = array()) 

操作失败返回的数据

Parameters

string $msg

提示信息

mixed $data

要返回的数据

integer $code

错误码,默认为0

string $type

输出类型

array $header

发送的 Header 信息

result()

result(mixed  $msg, mixed  $data = null, integer  $code, string  $type = null, array  $header = array()) : void

返回封装后的 API 数据到客户端

Parameters

mixed $msg

提示信息

mixed $data

要返回的数据

integer $code

错误码,默认为0

string $type

输出类型,支持json/xml/jsonp

array $header

发送的 Header 信息

Throws

\think\exception\HttpResponseException

preExcludeFields()

preExcludeFields(  $params) : array

排除前台提交过来的字段

Parameters

$params

Returns

array