\

Namespaces

App
Tests

Classes

CreateNotificationsTable
DatabaseSeeder
Uploader Created by JetBrains PhpStorm.
Uploader Created by JetBrains PhpStorm.

Constants

A

A = $action

C

C = $class

CU

CU = M . '.' . C . '.create'

DU

DU = M . '.' . C . '.destroy'

EU

EU = M . '.' . C . '.edit'

IU

IU = M . '.' . C . '.index'

LARAVEL_START

LARAVEL_START = microtime(true)

M

M = $module

P

P = $platform

USER_ID

USER_ID = $user->id

Functions

array2object()

array2object(\[type]  $array) : \[type]

数组转对象

Parameters

\[type] $array

[description]

Returns

\[type] —

[description]

can()

can(  $permission) 

Parameters

$permission

createRandomCode()

createRandomCode(  $length) 

Parameters

$length

getfiles()

getfiles(  $path,   $allowFiles, array  $files = array()) : array

遍历获取目录下的指定类型的文件

Parameters

$path
$allowFiles
array $files

Returns

array

highlight()

highlight(string  $str = '',   $key = '') : \[type]

后台查找高亮,其他后台模板请重写此方法

Parameters

string $str

[description]

$key

Returns

\[type] —

[description]

is_mobile()

is_mobile(\[type]  $mobile) : boolean

是否正确手机号码格式

Parameters

\[type] $mobile

[description]

Returns

boolean —

[description]

object2array()

object2array(\[type]  $object) : \[type]

对象转数组

Parameters

\[type] $object

[description]

Returns

\[type] —

[description]

r()

r(string  $route, string  $urlString, string  $params = array()) : string

自己重新定义的生成URL函数,方便使用而已。

Parameters

string $route

路由别中

string $urlString

当前操作的模块、类、函数,以点为分隔

string $params

附带参数

Returns

string

remote2local()

remote2local(string  $remote, \[type]  $public_local) : \[type]

远程文件下载到本地 public/uploads/ 目录下

Parameters

string $remote

[description]

\[type] $public_local

[description]

Returns

\[type] —

[description]

setting()

setting(  $key = '',   $value = '') 

Parameters

$key
$value

wechat()

wechat() : \[type]

微信

Returns

\[type] —

[description]