class ProgressController extends DevelopController

deprecated 4.2

更新数据,对于数据更新, 稳健的方式是使用命令行

Traits

Trait Viewable.

PoppyTrait
DispatchesJobs
ValidatesRequests

Properties

static $permission from  DevelopController
protected int $pagesize pagesize from  Controller
protected string $ip ip from  Controller
protected Carbon $now now from  Controller
protected string|null $route route from  Controller
protected string|null $title title from  Controller
protected PamAccount|null $pam from  BackendController
protected array $fix from  FixTrait

Methods

__construct()

Controller constructor.

void
withViews()

No description

void
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

PamAccount|null
pam()

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

share(string|array $key, null $value = null)

Share variable with view.

View
view(string $template, array $data = [], array $mergeData = [])

Share variable with view.

coreModule()

获取核心的模块

int|bool
__call($method, $params)

No description

from  FixTrait
int
section($num = 0)

更改每次执行的数据量

from  FixTrait
int
interval($num = 0)

更改每次执行的时间间隔

from  FixTrait
fixInit()

初始化

from  FixTrait
Factory|View
fixView()

返回修复的页面

from  FixTrait
fixResp()

返回修复的下一次请求

from  FixTrait
void
max(mixed $num)

最大值, 如果没有则进行设置

from  FixTrait
void
min(mixed $num)

设置执行的最小值

from  FixTrait
void
start(mixed $num, mixed $force)

设置执行的起始值, 默认是最小值

from  FixTrait
void
cached(mixed $bool)

设置执行缓存标识

from  FixTrait
void
total(mixed $num)

设置执行的总数量

from  FixTrait
void
lastId(mixed $num, mixed $force) 执行ID值(用于展示)

No description

from  FixTrait
void
left(mixed $num, mixed $force) 设置剩余值(用于展示)

No description

from  FixTrait
lists()

No description

Factory|JsonResponse|RedirectResponse|Response|View
index()

展示更新进度

Details

at line 32
__construct()

Controller constructor.

in Controller at line 69
protected void withViews()

No description

Return Value

void

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

seo

Parameters

mixed ...$args args

Return Value

void

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

in BackendController at line 45
PamAccount|null pam()

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

Return Value

PamAccount|null

in ViewTrait at line 22
protected share(string|array $key, null $value = null)

Share variable with view.

Parameters

string|array $key key
null $value value

in ViewTrait at line 37
protected View view(string $template, array $data = [], array $mergeData = [])

Share variable with view.

Parameters

string $template template
array $data data
array $mergeData mergeData

Return Value

View

Exceptions

BindingResolutionException

in CoreTrait at line 16
ModuleManager coreModule()

获取核心的模块

Return Value

ModuleManager

in CoreTrait at line 25
PermissionManager corePermission()

权限管理

Return Value

PermissionManager

in FixTrait at line 45
int|bool __call($method, $params)

No description

Parameters

$method
$params

Return Value

int|bool

Exceptions

ApplicationException

in FixTrait at line 74
protected int section($num = 0)

更改每次执行的数据量

Parameters

$num

Return Value

int

in FixTrait at line 87
protected int interval($num = 0)

更改每次执行的时间间隔

Parameters

$num

Return Value

int

in FixTrait at line 98
protected fixInit()

初始化

in FixTrait at line 118
protected Factory|View fixView()

返回修复的页面

Return Value

Factory|View

in FixTrait at line 150
protected fixResp()

返回修复的下一次请求

in FixTrait at line 21
void max(mixed $num)

最大值, 如果没有则进行设置

Parameters

mixed $num

Return Value

void

in FixTrait at line 21
void min(mixed $num)

设置执行的最小值

Parameters

mixed $num

Return Value

void

in FixTrait at line 21
void start(mixed $num, mixed $force)

设置执行的起始值, 默认是最小值

Parameters

mixed $num
mixed $force

Return Value

void

in FixTrait at line 21
void cached(mixed $bool)

设置执行缓存标识

Parameters

mixed $bool

Return Value

void

in FixTrait at line 21
void total(mixed $num)

设置执行的总数量

Parameters

mixed $num

Return Value

void

in FixTrait at line 21
void lastId(mixed $num, mixed $force) 执行ID值(用于展示)

No description

Parameters

mixed $num
mixed $force) 执行ID值(用于展示

Return Value

void

in FixTrait at line 21
void left(mixed $num, mixed $force) 设置剩余值(用于展示)

No description

Parameters

mixed $num
mixed $force) 设置剩余值(用于展示

Return Value

void

at line 69
lists()

No description

at line 81
Factory|JsonResponse|RedirectResponse|Response|View index()

展示更新进度

Return Value

Factory|JsonResponse|RedirectResponse|Response|View