GridPlugin
class GridPlugin
todo 可能需要和 widget 再进行合并
Traits
PoppyTrait
Properties
protected FilterPlugin | $filter | ||
protected TablePlugin | $table | 列组件 | |
protected Interactions | $quick | 右上角快捷操作 | |
protected Interactions | $batch | 左下角快捷操作 | |
string read-only | $title | 标题 |
Methods
__construct()
Create a new grid instance.
setTitle(string $title)
设置标题
__get($attr)
No description
array
structQuery()
No description
array
structFilter()
No description
array
structData(Collection $collection, int $total)
填充结构化的数据
Details
in
PoppyTrait at line 41
protected AuthManager
pyAuth()
get auth
in
PoppyTrait at line 50
protected Translator
pyTranslator()
get translator
in
PoppyTrait at line 60
protected Repository
pyConfig()
Get configuration instance.
in
PoppyTrait at line 70
protected DatabaseManager
pyDb()
get db
in
PoppyTrait at line 79
protected Kernel
pyConsole()
Get console instance.
in
PoppyTrait at line 88
protected Container
pyContainer()
Get IoC Container.
in
PoppyTrait at line 97
protected Mailer
pyMailer()
Get mailer instance.
in
PoppyTrait at line 106
protected SessionManager|Store
pySession()
Get session instance.
in
PoppyTrait at line 115
protected Request
pyRequest()
get request
in
PoppyTrait at line 125
protected Redirector
pyRedirector()
get redirector
in
PoppyTrait at line 134
protected Factory
pyValidation()
get validation
in
PoppyTrait at line 144
protected Dispatcher
pyEvent()
get event
in
PoppyTrait at line 154
protected LoggerInterface
pyLogger()
get logger
in
PoppyTrait at line 164
protected ResponseFactory
pyResponse()
get response
in
PoppyTrait at line 174
protected Filesystem
pyFile()
get file
in
PoppyTrait at line 184
protected UrlGenerator
pyUrl()
get url
in
PoppyTrait at line 195
protected mixed
pyCache(string $tag = '')
get cache
in
PoppyTrait at line 209
protected RedisManager
pyRedis()
get redis
in
PoppyTrait at line 218
protected Factory
pyView()
get view
in
PoppyTrait at line 227
protected Poppy
pyPoppy()
get poppy
in
PoppyTrait at line 236
protected Ini
pyIni()
Ini Parser
in
PoppyTrait at line 245
protected Xml
pyXml()
Ini Parser
in
PoppyTrait at line 254
protected Yaml
pyYaml()
Yaml Parser
in
UseQuery at line 16
protected bool
queryHas(string $query, string $type)
检测查询类型是否存在
in
UseQuery at line 31
protected string
queryAfter(string $query, string $type)
检测查询类型是否存在
at line 57
__construct()
Create a new grid instance.
at line 65
GridPlugin
table(Closure $cb)
No description
at line 71
GridPlugin
batch(Closure $cb)
No description
at line 77
GridPlugin
quick(Closure $cb)
No description
at line 83
GridPlugin
filter(Closure $cb)
No description
at line 95
GridPlugin
setTitle(string $title)
设置标题
at line 101
__get($attr)
No description
at line 107
protected array
structQuery()
No description
at line 140
protected array
structFilter()
No description
at line 154
protected array
structData(Collection $collection, int $total)
填充结构化的数据