Documentation

progress implements JsonSerializable

System config Objekt

Table of Contents

$current Current value mixed
$next Next execution possible int
$stop Stop flag bool
$data Data parameter null|array
$callback Callback Function callable
$maxExec Maximum execution time in seconds, 80% of max_execution_time int
__construct() Controller void
getCurrent() Get current value mixed
getNext() Next execution required/ possible int
getData() Get data array|null
getStop() Check if progress was stopped bool
setCurrent() Set current value $this
setNext() Set Next execution flag $this
setData() Set data $this
process() Process progress bool

Properties

$current

Current value

private mixed $current = null

$next

Next execution possible

private int $next = true

$stop

Stop flag

private bool $stop = false

$data

Data parameter

private null|array $data = null

$callback

Callback Function

private callable $callback = null

$maxExec

Maximum execution time in seconds, 80% of max_execution_time

private int $maxExec = 10

Methods

__construct()

Controller

public __construct( $callback : callable ) : void
Parameters
$callback : callable

getCurrent()

Get current value

public getCurrent( ) : mixed
Return values
mixed

getNext()

Next execution required/ possible

public getNext( ) : int
Return values
int

getData()

Get data

public getData( ) : array|null
Return values
array|null

getStop()

Check if progress was stopped

public getStop( ) : bool
Return values
bool

setCurrent()

Set current value

public setCurrent( $current : mixed ) : $this
Parameters
$current : mixed
Return values
$this

setNext()

Set Next execution flag

public setNext( $next : int|bool ) : $this
Parameters
$next : int|bool
Return values
$this

setData()

Set data

public setData( $data : array ) : $this
Parameters
$data : array
Return values
$this

process()

Process progress

public final process( ) : bool
Return values
bool

Search results