| 
    ILIAS
    release_9 Revision v9.13-25-g2c18ec4c24f
    
   | 
  
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
 Inheritance diagram for ilDBStepExecutionDB:
 Collaboration diagram for ilDBStepExecutionDB:Public Member Functions | |
| __construct (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 | |
| ilDBInterface | $db | 
| $get_now | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning This logs the execution of database update steps.
Definition at line 26 of file class.ilDBStepExecutionDB.php.
| ilDBStepExecutionDB::__construct | ( | ilDBInterface | $db, | 
| callable | $get_now | ||
| ) | 
| callable | $get_now | must return a DateTime object indicating the very moment the callable was called. | 
Definition at line 42 of file class.ilDBStepExecutionDB.php.
| ilDBStepExecutionDB::finished | ( | string | $class, | 
| int | $step | ||
| ) | 
Implements ilDatabaseUpdateStepExecutionLog.
Definition at line 84 of file class.ilDBStepExecutionDB.php.
References getFormattedNow(), getLastStartedStep(), and throwIfClassNameTooLong().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 146 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 122 of file class.ilDBStepExecutionDB.php.
References $res, 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 108 of file class.ilDBStepExecutionDB.php.
References $res, 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 | ||
| ) | 
Implements ilDatabaseUpdateStepExecutionLog.
Definition at line 51 of file class.ilDBStepExecutionDB.php.
References getFormattedNow(), getLastFinishedStep(), getLastStartedStep(), and throwIfClassNameTooLong().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 137 of file class.ilDBStepExecutionDB.php.
Referenced by finished(), getLastFinishedStep(), getLastStartedStep(), and started().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 35 of file class.ilDBStepExecutionDB.php.
Referenced by __construct().
      
  | 
  protected | 
Definition at line 36 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" |