From: Alexander Ebert Date: Mon, 21 May 2012 12:52:42 +0000 (+0200) Subject: Added methods to receive className and objects X-Git-Tag: 2.0.0_Beta_1~1099 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=764fe46c63de00098aa6a348309a7dafe85c36f6;p=GitHub%2FWoltLab%2FWCF.git Added methods to receive className and objects Closes #615 --- 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; + } }