Marius Cramer
2015-04-08 d69383d980ed4350f8b0f2382f0a439551df203b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
 
if(!defined('INSTALLER_RUN')) die('Patch update file access violation.');
 
/*
    Example installer patch update class. the classname must match
    the php and the sql patch update filename. The php patches are
    only executed when a corresponding sql patch exists.
*/
 
class upd_0001 extends installer_patch_update {
 
    public function onBeforeSQL() {
        // Do something
    }
 
    public function onAfterSQL() {
        // Do something
    }
 
}
 
?>