1<?php 2 3/** 4 * e107 website system 5 * 6 * Copyright (C) 2008-2012 e107 Inc (e107.org) 7 * Released under the terms and conditions of the 8 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) 9 * 10 * @file 11 * Custom install/uninstall/update routines. 12 */ 13 14 15/** 16 * Class gallery_setup. 17 */ 18class gallery_setup 19{ 20 21 /** 22 * This function is called before plugin table has been created by the 23 * [PLUGIN]_sql.php file. 24 * 25 * @param array $var 26 */ 27 function install_pre($var) 28 { 29 30 } 31 32 /** 33 * This function is called after plugin table has been created by the 34 * [PLUGIN]_sql.php file. 35 * 36 * @param array $var 37 */ 38 function install_post($var) 39 { 40 41 } 42 43 function uninstall_pre($var) 44 { 45 46 } 47 48 function uninstall_options() 49 { 50 } 51 52 function uninstall_post($var) 53 { 54 } 55 56 /** 57 * Trigger an upgrade alert or not. 58 * 59 * @param array $var 60 * 61 * @return bool 62 * True to trigger an upgrade alert, and false to not. 63 */ 64 function upgrade_required($var) 65 { 66 return false; 67 } 68 69 function upgrade_pre($var) 70 { 71 } 72 73 function upgrade_post($var) 74 { 75 76 } 77 78} 79