Example #1
0
 public function uninstall()
 {
     if (parent::uninstall()) {
         return parent::setUnInstalled();
     } else {
         return false;
     }
 }
Example #2
0
 public function uninstall()
 {
     if (parent::uninstall()) {
         $tablename = "yg_ext_" . $this->_code . "_exampletable";
         $sql = "DROP TABLE {$tablename};";
         $dbr = sYDB()->Execute($sql);
         if ($dbr === false) {
             throw new \Exception(sYDB()->ErrorMsg());
             return false;
         }
         return parent::setUnInstalled();
     } else {
         return false;
     }
 }