ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
|
This logs the execution of database update steps. More...
Public Member Functions | |
__construct (protected ilDBInterface $db, callable $get_now) | |
started (string $class, int $step) | |
finished (string $class, int $step) | |
getLastStartedStep (string $class) | |
Returns 0 as "first" step. More... | |
getLastFinishedStep (string $class) | |
Returns 0 as "first" step. More... | |
Data Fields | |
const | TABLE_NAME = "il_db_steps" |
const | FIELD_CLASS = "class" |
const | FIELD_STEP = "step" |
const | FIELD_STARTED = "started" |
const | FIELD_FINISHED = "finished" |
Protected Member Functions | |
throwIfClassNameTooLong (string $class) | |
getFormattedNow () | |
Protected Attributes | |
$get_now | |
This logs the execution of database update steps.
Definition at line 26 of file class.ilDBStepExecutionDB.php.
ilDBStepExecutionDB::__construct | ( | protected ilDBInterface | $db, |
callable | $get_now | ||
) |
callable | $get_now | must return a DateTime object indicating the very moment the callable was called. |
Definition at line 40 of file class.ilDBStepExecutionDB.php.
References $get_now.
ilDBStepExecutionDB::finished | ( | string | $class, |
int | $step | ||
) |
Implements ilDatabaseUpdateStepExecutionLog.
Definition at line 81 of file class.ilDBStepExecutionDB.php.
References getFormattedNow(), getLastStartedStep(), and throwIfClassNameTooLong().
Referenced by ilDBStepExecutionDBTest\testFinishedThrowsWhenOtherStepThenLastIsFinished(), and ilDBStepExecutionDBTest\testFinishedWritesToDB().
|
protected |
Definition at line 143 of file class.ilDBStepExecutionDB.php.
References $get_now.
Referenced by finished(), and started().
ilDBStepExecutionDB::getLastFinishedStep | ( | string | $class | ) |
Returns 0 as "first" step.
Implements ilDatabaseUpdateStepExecutionLog.
Definition at line 119 of file class.ilDBStepExecutionDB.php.
References $res, and throwIfClassNameTooLong().
Referenced by started().
ilDBStepExecutionDB::getLastStartedStep | ( | string | $class | ) |
Returns 0 as "first" step.
Implements ilDatabaseUpdateStepExecutionLog.
Definition at line 105 of file class.ilDBStepExecutionDB.php.
References $res, and throwIfClassNameTooLong().
Referenced by finished(), and started().
ilDBStepExecutionDB::started | ( | string | $class, |
int | $step | ||
) |
Implements ilDatabaseUpdateStepExecutionLog.
Definition at line 48 of file class.ilDBStepExecutionDB.php.
References getFormattedNow(), getLastFinishedStep(), getLastStartedStep(), and throwIfClassNameTooLong().
Referenced by ilDBStepExecutionDBTest\testStartedThrowsOnStartStepNotLargerThenLastFinishedStep(), ilDBStepExecutionDBTest\testStartedThrowsWhenLastStepNotFinished(), and ilDBStepExecutionDBTest\testStartedWritesToDB().
|
protected |
Definition at line 134 of file class.ilDBStepExecutionDB.php.
Referenced by finished(), getLastFinishedStep(), getLastStartedStep(), and started().
|
protected |
Definition at line 34 of file class.ilDBStepExecutionDB.php.
Referenced by __construct(), and getFormattedNow().
const ilDBStepExecutionDB::FIELD_CLASS = "class" |
const ilDBStepExecutionDB::FIELD_FINISHED = "finished" |
Definition at line 33 of file class.ilDBStepExecutionDB.php.
Referenced by ilDBStepExecutionDBTest\testFinishedWritesToDB(), and ilDBStepExecutionDBTest\testGetLastFinishedStepQueriesDB().
const ilDBStepExecutionDB::FIELD_STARTED = "started" |
Definition at line 32 of file class.ilDBStepExecutionDB.php.
Referenced by ilDBStepExecutionDBTest\testStartedWritesToDB().
const ilDBStepExecutionDB::FIELD_STEP = "step" |
Definition at line 31 of file class.ilDBStepExecutionDB.php.
Referenced by ilDBStepExecutionDBTest\testFinishedWritesToDB(), ilDBStepExecutionDBTest\testGetLastFinishedStepQueriesDB(), ilDBStepExecutionDBTest\testGetLastFinishedStepStartsWithZero(), ilDBStepExecutionDBTest\testGetLastStartedStepQueriesDB(), ilDBStepExecutionDBTest\testGetLastStartedStepStartsWithZero(), and ilDBStepExecutionDBTest\testStartedWritesToDB().
const ilDBStepExecutionDB::TABLE_NAME = "il_db_steps" |