protected static $databaseTableIndexName = 'categoryID';
/**
- * @todo Methode so beibehalten und effektiv DatabaseObject::__construct() klonen
- * oder generell so etwas mit einem zusätzlichen Query abfragen?
+ * @see wcf\data\DatabaseObject::__construct()
*/
public function __construct($categoryID, $row = null, UserOptionCategory $category = null) {
if ($categoryID !== null) {
}
/**
- * Initialises applications.
- *
- * @todo Determine all required applications as such connected
- * with each other. Ensure all applications implement the
- * 'Application' interface.
+ * Initializes applications.
*/
protected function initApplications() {
if (PACKAGE_ID == 1) return;
}
}
else {
+ // get package name for better readability
+ $sql = "SELECT package
+ FROM wcf".WCF_N."_package
+ WHERE packageID = ?";
+ $statement = self::getDB()->prepareStatement($sql);
+ $statement->execute(array($application->packageID));
+ $row = $statement->fetchArray();
+
unset(self::$autoloadDirectories[$abbreviation]);
- throw new exception\SystemException('Unable to run '.$row->package.', '.$className.' missing.'); //TODO: undefined variable
+ throw new exception\SystemException("Unable to run '".$row['package']."', '".$className."' is missing or does not implement 'wcf\system\application\IApplication'.");
}
// load application settings if not within ACP
* @see wcf\system\database\editor\DatabaseEditor::dropForeignKey()
*/
public function dropForeignKey($tableName, $indexName) {
- // TODO: implement this function
+ // TODO: Could it be, that this method is not required because Postgre is clever enough to delete references anyway?
}
/**
/**
* PackageUninstallationNodeBuilder creates a logical node-based uninstallation tree.
- *
- * @todo Change to use Prepared Statements, see line 42
*
* @author Alexander Ebert
* @copyright 2001-2011 WoltLab GmbH
* @param string $startDom
* @param string $startMonth
* @param string $startDow
- *
- * @todo Move code to seperate class, e.g. CronjobUtil
*/
public static function validate($startMinute, $startHour, $startDom, $startMonth, $startDow) {
self::validateAttribute('startMinute', $startMinute);
*
* @param string $name
* @param string $value
- * @todo Move code to seperate class, e.g. CronjobUtil
*/
protected static function validateAttribute($name, $value) {
if ($value === '') {