* @category Community Framework
*/
abstract class AbstractPackageInstallationPlugin implements IPackageInstallationPlugin {
+ /**
+ * table application prefix
+ * @var string
+ */
+ public $application = 'wcf';
+
/**
* database table name
* @var string
EventHandler::getInstance()->fireAction($this, 'hasUninstall');
$sql = "SELECT COUNT(*) AS count
- FROM wcf".WCF_N."_".$this->tableName."
+ FROM ".$this->application.WCF_N."_".$this->tableName."
WHERE packageID = ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array($this->installation->getPackageID()));
// call 'uninstall' event
EventHandler::getInstance()->fireAction($this, 'uninstall');
- $sql = "DELETE FROM wcf".WCF_N."_".$this->tableName."
+ $sql = "DELETE FROM ".$this->application.WCF_N."_".$this->tableName."
WHERE packageID = ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array($this->installation->getPackageID()));