From 764fe46c63de00098aa6a348309a7dafe85c36f6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 21 May 2012 14:52:42 +0200 Subject: [PATCH] Added methods to receive className and objects Closes #615 --- .../AbstractDatabaseObjectAction.class.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php index cbe53272bc..f810bc0939 100644 --- a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php +++ b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php @@ -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 + */ + public function getObjects() { + return $this->objects; + } } -- 2.20.1