File for checking and executing (new) patches.
| package | Gems |
|---|---|
| subpackage | Util |
| copyright | Copyright (c) 2011 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.1 |
__construct(\Zend_Db_Adapter_Abstract $db, mixed $files, array $databases)
\Zend_Db_Adapter_Abstract
mixedArray of file names or single file name
arrayNested array with rowes containing path, name and db keys.
getPatchDatabase(string $location) : \Zend_Db_Adapter_Abstract
string
\Zend_Db_Adapter_AbstracthasPatchFiles() : boolean
booleanloadPatchBatch(integer $patchLevel, boolean $ignoreCompleted, boolean $ignoreExecuted, \MUtil_Task_TaskBatch $batch) : \MUtil_Task_TaskBatch
integerOnly execute patches for this patchlevel
booleanSet to yes to skip patches that where already completed
booleanSet to yes to skip patches that where already executed (this includes the ones that are executed but not completed)
\MUtil_Task_TaskBatchOptional batch, otherwise one is created
\MUtil_Task_TaskBatchThe batchuploadPatches(integer $applicationLevel)
integerHighest level of patches to load (no loading of future patches)
getMinimumPatchLevel() : integer
integerThe lowest level of patch stored in the database._loadPatchFile(string $file, string $location, integer $minimumLevel, integer $maximumLevel)
stringFull filename
stringLocation description
integer
integer
_loadPatches(integer $minimumLevel, integer $maximumLevel)
integer
integer
$db : \Zend_Db_Adapter_Abstract
$patch_databases : array
$patch_sources : array
$_loaded_patches : array