--- /dev/null
+<?php
+namespace wcf\data;
+
+/**
+ * This interface provides a method to access the link to a database object.
+ *
+ * @author Matthias Schmidt
+ * @copyright 2001-2012 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package com.woltlab.wcf
+ * @subpackage data
+ * @category Community Framework
+ */
+interface ILinkableDatabaseObject {
+ /**
+ * Returns the link to this database object.
+ *
+ * @return string
+ */
+ public function getLink();
+}
\ No newline at end of file
--- /dev/null
+<?php
+namespace wcf\data;
+
+/**
+ * This interface provides a method to access the title of a database object.
+ *
+ * @author Matthias Schmidt
+ * @copyright 2001-2012 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package com.woltlab.wcf
+ * @subpackage data
+ * @category Community Framework
+ */
+interface ITitledDatabaseObject {
+ /**
+ * Returns the title of this database object.
+ *
+ * @return string
+ */
+ public function getTitle();
+}
\ No newline at end of file
<?php
namespace wcf\system\request;
+use wcf\data\ITitledDatabaseObject;
/**
* Default interface for route controllers.
* @subpackage system.request
* @category Community Framework
*/
-interface IRouteController {
+interface IRouteController extends ITitledDatabaseObject {
/**
* Returns the object id.
*
* @return integer
*/
public function getID();
-
- /**
- * Returns the object title.
- *
- * @return string
- */
- public function getTitle();
}