function tcommontagsUninstall($self) { tposts::unsub($self); turlmap::unsub($self); $widgets = twidgets::i(); $widgets->deleteclass(get_class($self)); }
function tlivejournalposterUninstall($self) { tposts::unsub($self); if (dbversion) { //litepublisher::$db->table = 'postsmeta'; //litepublisher::$db->delete("name = 'ljid'"); } }
function thomepageUninstall($self) { turlmap::unsub($self); tposts::unsub($self); $menus = tmenus::i(); $menus->lock(); unset($menus->items[$menus->idhome]); $menus->sort(); $menus->unlock(); }
public function setenabled($value) { if ($value != $this->enabled) { $this->lock(); $this->data['enabled'] = $value; if ($value) { $this->install(); } else { tposts::unsub($this); } $this->unlock(); } }
function twikiwordsUninstall($self) { unset(litepublisher::$classes->classes['wikiword']); litepublisher::$classes->save(); $filter = tcontentfilter::i(); $filter->unbind($self); tposts::unsub($self); if ($self->dbversion) { $manager = tdbmanager::i(); $manager->deletetable($self->table); $manager->deletetable($self->itemsposts->table); } }
function tsamepostsUninstall($self) { tposts::unsub($self); twidgets::i()->deleteclass(get_class($self)); if (dbversion) { $manager = tdbmanager::i(); $manager->deletetable($self->table); } else { $posts = tposts::i(); $dir = litepublisher::$paths->data . 'posts' . DIRECTORY_SEPARATOR; foreach ($posts->items as $id => $item) { @unlink($dir . $id . DIRECTORY_SEPARATOR . 'same.php'); } } }
function tcodedocpluginUninstall($self) { //die("Warning! You can lost all tickets!"); tposts::unsub($self); $menus = tmenus::i(); $menus->deleteurl('/doc/'); litepublisher::$classes->delete('tcodedocmenu'); litepublisher::$classes->delete('tcodedocfilter'); $filter = tcontentfilter::i(); $filter->unbind($self); $merger = tlocalmerger::i(); $merger->delete('codedoc'); $manager = tdbmanager::i(); $manager->deletetable('codedoc'); }
function tpingbacksUninstall($self) { tposts::unsub($self); }
function tdownloaditemsUninstall($self) { //die("Warning! You can lost all downloaditems!"); tposts::unsub($self); $adminmenus = tadminmenus::i(); $adminmenus->deletetree($adminmenus->url2id('/admin/downloaditems/')); $menus = tmenus::i(); $menus->deletetree($menus->class2id('tdownloaditemsmenu')); $parser = tthemeparser::i(); $parser->unbind($self); ttheme::clearcache(); $classes = litepublisher::$classes; $classes->lock(); $classes->delete('tdownloaditem'); $classes->delete('tdownloaditemsmenu'); $classes->delete('tdownloaditemeditor'); $classes->delete('tadmindownloaditems'); $classes->delete('tdownloaditemcounter'); $classes->delete('taboutparser'); $classes->unlock(); $merger = tlocalmerger::i(); $merger->deleteplugin(tplugins::getname(__FILE__)); $manager = tdbmanager::i(); $manager->deletetable($self->childtable); $manager->delete_enum('posts', 'class', 'tdownloaditem'); $optimizer = tdboptimizer::i(); $optimizer->lock(); $optimizer->unbind($self); if (false !== ($i = array_search('downloaditems', $optimizer->childtables))) { unset($optimizer->childtables[$i]); } $optimizer->unlock(); tjsmerger::i()->deletefile('default', '/plugins/downloaditem/downloaditem.min.js'); litepublisher::$options->delete('downloaditem_themetag'); litepublisher::$options->delete('downloaditem_plugintag'); litepublisher::$options->savemodified(); }
function tfilesUninstall($self) { tposts::unsub($self); tposts::unsub($self->itemsposts); }
function tpostcontentpluginUninstall($self) { tposts::unsub($self); }
function tticketsUninstall($self) { //die("Warning! You can lost all tickets!"); litepublisher::$classes->lock(); //if (litepublisher::$debug) litepublisher::$classes->delete('tpostclasses'); tposts::unsub($self); litepublisher::$classes->delete('tticket'); litepublisher::$classes->delete('tticketeditor'); litepublisher::$classes->delete('tadmintickets'); litepublisher::$classes->delete('tadminticketoptions'); $adminmenus = tadminmenus::i(); $adminmenus->lock(); $adminmenus->deletetree($adminmenus->url2id('/admin/tickets/')); $adminmenus->unbind($self); $adminmenus->unlock(); /* $menus = tmenus::i(); $menus->lock(); foreach (array('bug', 'feature', 'support', 'task') as $type) { $menus->deleteurl("/$type/"); } $menus->deleteurl('/tickets/'); $menus->unlock(); litepublisher::$classes->delete('tticketsmenu'); */ litepublisher::$classes->unlock(); $manager = tdbmanager::i(); $manager->deletetable($self->childtable); $manager->delete_enum('posts', 'class', 'tticket'); $optimizer = tdboptimizer::i(); $optimizer->lock(); $optimizer->unbind($self); if (false !== ($i = array_search('tickets', $optimizer->childtables))) { unset($optimizer->childtables[$i]); } $optimizer->unlock(); tlocalmerger::i()->deleteplugin(tplugins::getname(__FILE__)); }
function tcommentsUninstall($self) { tposts::unsub($self); }