class Import

Traits

AppTrait

Properties

protected Resp $error error from  AppTrait
protected Resp $success success from  AppTrait
protected Db $dao
protected string $table
protected int $chunk
protected int $start
protected int $end

Methods

getError()

获取错误

from  AppTrait
bool
setError(string|MessageBag $error)

设置错误

from  AppTrait
getSuccess()

Get success messages;

from  AppTrait
bool
setSuccess(Resp|string $success)

No description

from  AppTrait
__construct()

Import constructor.

setTable(string $table)

No description

setProperty($property)

No description

setStart(int $start)

No description

setEnd(int $end)

No description

bool
chunk($size, callable $callback, callable $output = null)

No description

string
prepareSql($page, $size)

No description

string
range()

No description

Details

in AppTrait at line 30
Resp getError()

获取错误

Return Value

Resp

in AppTrait at line 43
bool setError(string|MessageBag $error)

设置错误

Parameters

string|MessageBag $error error

Return Value

bool

in AppTrait at line 72
Resp getSuccess()

Get success messages;

Return Value

Resp

in AppTrait at line 90
bool setSuccess(Resp|string $success)

No description

Parameters

Resp|string $success 设置的成功信息

Return Value

bool

at line 56
__construct()

Import constructor.

Exceptions

Throwable

at line 65
Import setTable(string $table)

No description

Parameters

string $table

Return Value

Import

at line 72
setProperty($property)

No description

Parameters

$property

at line 81
Import setStart(int $start)

No description

Parameters

int $start

Return Value

Import

at line 91
Import setEnd(int $end)

No description

Parameters

int $end

Return Value

Import

at line 104
bool chunk($size, callable $callback, callable $output = null)

No description

Parameters

$size
callable $callback
callable $output

Return Value

bool

at line 153
protected string prepareSql($page, $size)

No description

Parameters

$page
$size

Return Value

string

at line 170
protected string range()

No description

Return Value

string