/** 
  * Deletes group-option-categories and/or group-options which where installed by the package.
  */
 public function uninstall()
 {
     // Delete value-entries using categories or options
     // which will be deleted.
     $sql = "DELETE FROM \twcf" . WCF_N . "_group_option_value\n\t\t\tWHERE\t\toptionID IN (\n\t\t\t\t\t\tSELECT\toptionID\n\t\t\t\t\t\tFROM \twcf" . WCF_N . "_group_option\n\t\t\t\t\t\tWHERE\tpackageID = " . $this->installation->getPackageID() . "\n\t\t\t\t\t)";
     WCF::getDB()->sendQuery($sql);
     parent::uninstall();
 }
 /**
  * @see PackageInstallationPlugin::uninstall()
  */
 public function uninstall()
 {
     parent::uninstall();
     // delete functions
     $sql = "DELETE FROM\twcf" . WCF_N . "_admin_tools_function\n\t\t\tWHERE\t\tpackageID = " . $this->installation->getpackageID();
     WCF::getDB()->sendQuery($sql);
 }
 /** 
  * Drops the columns from user option value table from options
  * installed by this package.
  */
 public function uninstall()
 {
     // get optionsIDs from package
     $sql = "SELECT\toptionID\n\t\t\tFROM \twcf" . WCF_N . "_user_option\n\t\t\tWHERE\tpackageID = " . $this->installation->getPackageID();
     $result = WCF::getDB()->sendQuery($sql);
     $optionIDs = array();
     while ($row = WCF::getDB()->fetchArray($result)) {
         $optionIDs[] = $row['optionID'];
     }
     $this->dropColumns($optionIDs);
     // uninstall options and categories
     parent::uninstall();
 }