TimeTrex API Manual

ProgressBar
in package

Table of Contents

$default_key  : mixed
$update_interval  : mixed
$update_iteration  : mixed
$last_data  : mixed
$obj  : mixed
$key_prefix  : mixed
$last_update_time  : mixed
__construct()  : mixed
ProgressBar constructor.
calculateRemainingTime()  : mixed
delete()  : bool
error()  : bool
get()  : bool
getDefaultKey()  : null
getLastData()  : array<string|int, mixed>|null
getSharedMemoryObject()  : false|SharedMemory|null
Lazy load the SharedMemory object because if its using REDIS it would make a connection immediately rather than when its actually needed.
set()  : bool
setDefaultKey()  : mixed
Allow setting a default key so we don't have to pass the key around outside of this object.
start()  : bool
stop()  : bool
test()  : bool

Properties

Methods

__construct()

ProgressBar constructor.

public __construct() : mixed
Return values
mixed

calculateRemainingTime()

public calculateRemainingTime() : mixed
Return values
mixed

delete()

public delete( $key) : bool
Parameters
$key :
Return values
bool

error()

public error( $key[, null $msg = null ]) : bool
Parameters
$key :
$msg : null = null
Return values
bool

getLastData()

public getLastData() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getSharedMemoryObject()

Lazy load the SharedMemory object because if its using REDIS it would make a connection immediately rather than when its actually needed.

public getSharedMemoryObject() : false|SharedMemory|null
Return values
false|SharedMemory|null

set()

public set( $key, int $current_iteration[, null $msg = null ]) : bool
Parameters
$key :
$current_iteration : int
$msg : null = null
Return values
bool

setDefaultKey()

Allow setting a default key so we don't have to pass the key around outside of this object.

public setDefaultKey( $key) : mixed
Parameters
$key :
Return values
mixed

start()

public start( $key[, int $total_iterations = 100 ][, int $update_iteration = null ][, null $msg = null ]) : bool
Parameters
$key :
$total_iterations : int = 100
$update_iteration : int = null

EPOCH

$msg : null = null
Return values
bool

test()

public test( $key[, int $total_iterations = 10 ]) : bool
Parameters
$key :
$total_iterations : int = 10
Return values
bool

Search results