Added methods to receive className and objects
authorAlexander Ebert <ebert@woltlab.com>
Mon, 21 May 2012 12:52:42 +0000 (14:52 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 21 May 2012 12:52:42 +0000 (14:52 +0200)
Closes #615

wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php

index cbe53272bcde49a6abf109963abffee08a6eea1e..f810bc0939e2981982a30b01e0f3ba7f6bfe9213 100644 (file)
@@ -353,4 +353,22 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction {
                        $this->objects[] = new $this->className($object);
                }
        }
+       
+       /**
+        * Returns object class name.
+        * 
+        * @return      string
+        */
+       public function getClassName() {
+               return $this->className;
+       }
+       
+       /**
+        * Returns a list of currently loaded objects.
+        * 
+        * @return      array<wcf\data\IEditableObject>
+        */
+       public function getObjects() {
+               return $this->objects;
+       }
 }