class PlaceController extends BackendController

广告位管理

Traits

PoppyTrait
DispatchesJobs
ValidatesRequests

Properties

static string $permission from  Controller
protected int $pagesize pagesize from  Controller
protected string $ip ip from  Controller
protected Carbon $now now from  Controller
protected string $route route from  Controller
protected string $title title from  Controller
protected PamAccount $pam from  BackendController

Methods

__construct()

Controller constructor.

withViews()

No description

seo(mixed ...$args)

seo

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

Authenticatable|PamAccount
pam() deprecated

当前用户 因为这里的用户也不一定有值, 而且 $this->pam 中也存在此数据, 所以这里打算废弃此引用

Factory|View
index()

广告位列表

Factory|JsonResponse|RedirectResponse|Response|Redirector|View
establish(null $id = null)

创建/编辑广告位

JsonResponse|RedirectResponse|Response|Redirector
delete(int $id)

删除广告位

Details

at line 23
__construct()

Controller constructor.

in Controller at line 67
protected withViews()

No description

in Controller at line 92
protected seo(mixed ...$args)

seo

Parameters

mixed ...$args args

in PoppyTrait at line 41
protected AuthManager pyAuth()

get auth

Return Value

AuthManager

in PoppyTrait at line 50
protected Translator pyTranslator()

get translator

Return Value

Translator

in PoppyTrait at line 60
protected Repository pyConfig()

Get configuration instance.

Return Value

Repository

in PoppyTrait at line 70
protected DatabaseManager pyDb()

get db

Return Value

DatabaseManager

in PoppyTrait at line 79
protected Kernel pyConsole()

Get console instance.

Return Value

Kernel

in PoppyTrait at line 88
protected Container pyContainer()

Get IoC Container.

Return Value

Container

| Application

in PoppyTrait at line 97
protected Mailer pyMailer()

Get mailer instance.

Return Value

Mailer

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

Get session instance.

Return Value

SessionManager|Store

in PoppyTrait at line 115
protected Request pyRequest()

get request

Return Value

Request

in PoppyTrait at line 125
protected Redirector pyRedirector()

get redirector

Return Value

Redirector

in PoppyTrait at line 134
protected Factory pyValidation()

get validation

Return Value

Factory

in PoppyTrait at line 144
protected Dispatcher pyEvent()

get event

Return Value

Dispatcher

in PoppyTrait at line 154
protected LoggerInterface pyLogger()

get logger

Return Value

LoggerInterface

in PoppyTrait at line 164
protected ResponseFactory pyResponse()

get response

Return Value

ResponseFactory

in PoppyTrait at line 174
protected Filesystem pyFile()

get file

Return Value

Filesystem

in PoppyTrait at line 184
protected UrlGenerator pyUrl()

get url

Return Value

UrlGenerator

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

get cache

Parameters

string $tag tag

Return Value

mixed

in PoppyTrait at line 209
protected RedisManager pyRedis()

get redis

Return Value

RedisManager

in PoppyTrait at line 218
protected Factory pyView()

get view

Return Value

Factory

in PoppyTrait at line 227
protected Poppy pyPoppy()

get poppy

Return Value

Poppy

in PoppyTrait at line 236
protected Ini pyIni()

Ini Parser

Return Value

Ini

in PoppyTrait at line 245
protected Xml pyXml()

Ini Parser

Return Value

Xml

in PoppyTrait at line 254
protected Yaml pyYaml()

Yaml Parser

Return Value

Yaml

in BackendController at line 46
Authenticatable|PamAccount pam() deprecated

deprecated 3.1

当前用户 因为这里的用户也不一定有值, 而且 $this->pam 中也存在此数据, 所以这里打算废弃此引用

Return Value

Authenticatable|PamAccount

at line 33
Factory|View index()

广告位列表

Return Value

Factory|View

at line 49
Factory|JsonResponse|RedirectResponse|Response|Redirector|View establish(null $id = null)

创建/编辑广告位

Parameters

null $id 广告位ID

Return Value

Factory|JsonResponse|RedirectResponse|Response|Redirector|View

at line 70
JsonResponse|RedirectResponse|Response|Redirector delete(int $id)

删除广告位

Parameters

int $id 广告位ID

Return Value

JsonResponse|RedirectResponse|Response|Redirector