Implemented DatabaseObjectDecorator::getDecoratedObject()
authorMarcel Werk <burntime@woltlab.com>
Thu, 21 Jul 2011 13:17:39 +0000 (15:17 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 21 Jul 2011 13:17:39 +0000 (15:17 +0200)
wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php
wcfsetup/install/files/lib/data/DatabaseObjectDecorator.class.php

index 55a4055ab6d2b0e6d0689a4c51507a0ff4bf8922..37929a29e72b86ac2a58e4ebc8fabcc068d0fc07 100644 (file)
@@ -1,6 +1,5 @@
 <?php
 namespace wcf\data;
-
 use wcf\system\event\EventHandler;
 use wcf\system\exception\PermissionDeniedException;
 use wcf\system\exception\ValidateActionException;
index 3ca2b7cd1d7685ef7745e0c3f1ca1c315f53f5c5..aba5bcad62ce3067c4652502cf3f3a899b7af7a9 100644 (file)
@@ -101,4 +101,13 @@ abstract class DatabaseObjectDecorator extends DatabaseObject {
        public static function getBaseClass() {
                return static::$baseClass;
        }
+       
+       /**
+        * Returns the decorated object
+        * 
+        * @return wcf\data\DatabaseObject
+        */
+       public function getDecoratedObject() {
+               return $this->object;
+       }
 }