/**
  * 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!";
 }