/** 
  * Deletes the values from group option value table from option categories
  * deleted by this package update.
  * 
  * @param 	string 	$categoryNames  
  */
 protected function deleteCategories($categoryNames)
 {
     $sql = "SELECT\toptionID\n\t\t\tFROM \twcf" . WCF_N . "_group_option\n\t\t\tWHERE\tcategoryName IN (" . $categoryNames . ")\n\t\t\tAND \tpackageID = " . $this->installation->getPackageID();
     $result = WCF::getDB()->sendQuery($sql);
     $optionIDs = array();
     while ($row = WCF::getDB()->fetchArray($result)) {
         $optionIDs[] = $row['optionID'];
     }
     $this->deleteValues($optionIDs);
     parent::deleteCategories($categoryNames);
 }
 /**
  * @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);
 }