* @author Manuela v.d.Decken * @license http://www.gnu.org/licenses/gpl.html GPL License * @version 0.0.1 * @revision $Revision: 1 $ * @lastmodified $Date: 2014-11-30 00:00:00 +0100 (So, 30 Nov 2014) $ * @since File available since 30.11.2014 * @description delete actual instance of this addon */ if (! defined('WB_PATH')) { die('Cannot access this file directly'); } /* -------------------------------------------------------- */ // --- import needed objects --------------------------------- $oReg = WbAdapter::getInstance(); // get the instance of the active registry // --- import needed global vars ----------------------------- // ----------------------------------------------------------- /* *********************************************************** * * * put here all additional code to clean up this instance * * * * **********************************************************/ // --- finaly remove record from table `mod_helloworld_settings` ------ $sql = 'DELETE FROM `'.$oReg->Db->TablePrefix.'mod_helloworld_settings` ' . 'WHERE `instance`='.$oReg->InstanceId; if (! $oReg->Db->doQuery($sql)) { // use string var $sErrorMessage for returning of error messages! $sErrorMessage = $oReg->Db->getError(); } // --- end of file -------------------------------------------