/**
  * Works on destroying table data
  */
 public function uninstall()
 {
     die('serious?');
     // clears all tables !!!
     \Model\User::setdown();
     \Model\Payload::setdown();
     \Model\Webot::setdown();
     $cfg = new Config();
     $cfg->clear('ACTIVE_DB');
     $cfg->save();
     \Base::instance()->clear('SESSION');
     echo "Done Uninstalling Current Tables!";
 }
示例#2
0
文件: setup.php 项目: xfra35/fabulog
 public function uninstall()
 {
     die('serious?');
     // clears all tables !!!
     \Model\Post::setdown();
     \Model\Tag::setdown();
     \Model\Comment::setdown();
     \Model\User::setdown();
     $cfg = new Config();
     $cfg->clear('ACTIVE_DB');
     $cfg->save();
     \Base::instance()->clear('SESSION');
     echo "goodbye!";
 }