\app\utilTools

Summary

Methods
Properties
Constants
getDate()
userMd5()
isAdministrator()
buildArrFromObj()
buildArrByNewKey()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getDate()

getDate(  $timestamp) 

Parameters

$timestamp

userMd5()

userMd5(  $str, string  $auth_key = '') : string

二次封装的密码加密

Parameters

$str
string $auth_key

Returns

string

isAdministrator()

isAdministrator(string  $uid = '') : boolean

判断当前用户是否是超级管理员

Parameters

string $uid

Returns

boolean

buildArrFromObj()

buildArrFromObj(array  $res, string  $key = '') : array

将查询的二维对象转换成二维数组

Parameters

array $res
string $key

允许指定索引值

Returns

array

buildArrByNewKey()

buildArrByNewKey(  $array,   $keyName = 'id') : array

将二维数组变成指定key

Parameters

$array
$keyName

Returns

array