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
mixed
Array of file names or single file name
array
Nested array with rowes containing path, name and db keys.
getPatchDatabase(string $location) : \Zend_Db_Adapter_Abstract
string
\Zend_Db_Adapter_Abstract
hasPatchFiles() : boolean
boolean
loadPatchBatch(integer $patchLevel, boolean $ignoreCompleted, boolean $ignoreExecuted, \MUtil_Task_TaskBatch $batch) : \MUtil_Task_TaskBatch
integer
Only execute patches for this patchlevel
boolean
Set to yes to skip patches that where already completed
boolean
Set to yes to skip patches that where already executed (this includes the ones that are executed but not completed)
\MUtil_Task_TaskBatch
Optional batch, otherwise one is created
\MUtil_Task_TaskBatch
The batchuploadPatches(integer $applicationLevel)
integer
Highest level of patches to load (no loading of future patches)
getMinimumPatchLevel() : integer
integer
The lowest level of patch stored in the database._loadPatchFile(string $file, string $location, integer $minimumLevel, integer $maximumLevel)
string
Full filename
string
Location description
integer
integer
_loadPatches(integer $minimumLevel, integer $maximumLevel)
integer
integer
$db : \Zend_Db_Adapter_Abstract
$patch_databases : array
$patch_sources : array
$_loaded_patches : array