trait LayDefines

Layui 的参数定义

Traits

PoppyTrait

Properties

protected array $layElem
protected $layCols
protected int $layCellMinWidth

全局定义常规单元格的最小宽度,layui 2.2.1 新增

protected $layPage

Methods

AuthManager
pyAuth()

get auth

pyTranslator()

get translator

Repository
pyConfig()

Get configuration instance.

DatabaseManager
pyDb()

get db

Kernel
pyConsole()

Get console instance.

Container
pyContainer()

Get IoC Container.

Mailer
pyMailer()

Get mailer instance.

SessionManager|Store
pySession()

Get session instance.

Request
pyRequest()

get request

Redirector
pyRedirector()

get redirector

Factory
pyValidation()

get validation

Dispatcher
pyEvent()

get event

LoggerInterface
pyLogger()

get logger

ResponseFactory
pyResponse()

get response

Filesystem
pyFile()

get file

UrlGenerator
pyUrl()

get url

mixed
pyCache(string $tag = '')

get cache

RedisManager
pyRedis()

get redis

Factory
pyView()

get view

pyPoppy()

get poppy

Ini
pyIni()

Ini Parser

Xml
pyXml()

Ini Parser

pyYaml()

Yaml Parser

layPrependRowSelectorColumn()

增加行选择器

layFormat()

Layui 格式化

layColumns()

列样式

string
layDefine()

定义 Layui 的数据定义

Details

in PoppyTrait at line 43
protected AuthManager pyAuth()

get auth

Return Value

AuthManager

in PoppyTrait at line 52
protected Translator pyTranslator()

get translator

Return Value

Translator

in PoppyTrait at line 62
protected Repository pyConfig()

Get configuration instance.

Return Value

Repository

in PoppyTrait at line 72
protected DatabaseManager pyDb()

get db

Return Value

DatabaseManager

in PoppyTrait at line 81
protected Kernel pyConsole()

Get console instance.

Return Value

Kernel

in PoppyTrait at line 90
protected Container pyContainer()

Get IoC Container.

Return Value

Container

| Application

in PoppyTrait at line 99
protected Mailer pyMailer()

Get mailer instance.

Return Value

Mailer

in PoppyTrait at line 108
protected SessionManager|Store pySession()

Get session instance.

Return Value

SessionManager|Store

in PoppyTrait at line 117
protected Request pyRequest()

get request

Return Value

Request

in PoppyTrait at line 127
protected Redirector pyRedirector()

get redirector

Return Value

Redirector

in PoppyTrait at line 136
protected Factory pyValidation()

get validation

Return Value

Factory

in PoppyTrait at line 146
protected Dispatcher pyEvent()

get event

Return Value

Dispatcher

in PoppyTrait at line 156
protected LoggerInterface pyLogger()

get logger

Return Value

LoggerInterface

in PoppyTrait at line 166
protected ResponseFactory pyResponse()

get response

Return Value

ResponseFactory

in PoppyTrait at line 176
protected Filesystem pyFile()

get file

Return Value

Filesystem

in PoppyTrait at line 186
protected UrlGenerator pyUrl()

get url

Return Value

UrlGenerator

in PoppyTrait at line 197
protected mixed pyCache(string $tag = '')

get cache

Parameters

string $tag tag

Return Value

mixed

in PoppyTrait at line 211
protected RedisManager pyRedis()

get redis

Return Value

RedisManager

in PoppyTrait at line 220
protected Factory pyView()

get view

Return Value

Factory

in PoppyTrait at line 229
protected Poppy pyPoppy()

get poppy

Return Value

Poppy

in PoppyTrait at line 238
protected Ini pyIni()

Ini Parser

Return Value

Ini

in PoppyTrait at line 247
protected Xml pyXml()

Ini Parser

Return Value

Xml

in PoppyTrait at line 256
protected Yaml pyYaml()

Yaml Parser

Return Value

Yaml

at line 35
protected layPrependRowSelectorColumn()

增加行选择器

at line 44
protected layFormat()

Layui 格式化

at line 54
protected layColumns()

列样式

at line 67
protected string layDefine()

定义 Layui 的数据定义

Return Value

string