|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
This logs the execution of database update steps. More...
Inheritance diagram for ilDBStepExecutionDB:
Collaboration diagram for ilDBStepExecutionDB: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... | |
| 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 | ||
| ) |
LogicException if the finished step does not match the previously started step
Implements ilDatabaseUpdateStepExecutionLog.
Definition at line 81 of file class.ilDBStepExecutionDB.php.
References getFormattedNow(), getLastStartedStep(), and throwIfClassNameTooLong().
Referenced by ilDBStepExecutionDBTest\testFinishedThrowsWhenOtherStepThenLastIsFinished(), and ilDBStepExecutionDBTest\testFinishedWritesToDB().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 143 of file class.ilDBStepExecutionDB.php.
References $get_now.
Referenced by finished(), and started().
Here is the caller graph for this function:| ilDBStepExecutionDB::getLastFinishedStep | ( | string | $class | ) |
Returns 0 as "first" step.
Implements ilDatabaseUpdateStepExecutionLog.
Definition at line 119 of file class.ilDBStepExecutionDB.php.
References $res, FIELD_STEP, and throwIfClassNameTooLong().
Referenced by started().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBStepExecutionDB::getLastStartedStep | ( | string | $class | ) |
Returns 0 as "first" step.
Implements ilDatabaseUpdateStepExecutionLog.
Definition at line 105 of file class.ilDBStepExecutionDB.php.
References $res, FIELD_STEP, and throwIfClassNameTooLong().
Referenced by finished(), and started().
Here is the call graph for this function:
Here is the caller graph for this function:| ilDBStepExecutionDB::started | ( | string | $class, |
| int | $step | ||
| ) |
LogicException if the previously started step has not finished
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 134 of file class.ilDBStepExecutionDB.php.
Referenced by finished(), getLastFinishedStep(), getLastStartedStep(), and started().
Here is the caller graph for this function:
|
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 getLastFinishedStep(), getLastStartedStep(), ilDBStepExecutionDBTest\testFinishedWritesToDB(), ilDBStepExecutionDBTest\testGetLastFinishedStepQueriesDB(), ilDBStepExecutionDBTest\testGetLastFinishedStepStartsWithZero(), ilDBStepExecutionDBTest\testGetLastStartedStepQueriesDB(), ilDBStepExecutionDBTest\testGetLastStartedStepStartsWithZero(), and ilDBStepExecutionDBTest\testStartedWritesToDB().
| const ilDBStepExecutionDB::TABLE_NAME = "il_db_steps" |