From 832371b2e7a8fab5e1fb1bd29e89a4084709e924 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 7 Sep 2011 10:17:11 +0200 Subject: [PATCH] Updates documentation of wcf\data\AbstractDatabaseObjectAction --- .../AbstractDatabaseObjectAction.class.php | 23 +++++-------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php index f09e4f222a..c8d649c8ab 100644 --- a/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php +++ b/wcfsetup/install/files/lib/data/AbstractDatabaseObjectAction.class.php @@ -20,63 +20,54 @@ use wcf\util\StringUtil; abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction { /** * pending action - * * @var string */ protected $action = ''; /** * object editor class name - * * @var string */ protected $className = ''; /** * list of object ids - * * @var array */ protected $objectIDs = array(); /** - * list of objects - * + * list of object editors * @var array */ protected $objects = array(); /** * multi-dimensional array of parameters required by an action - * * @var array */ protected $parameters = array(); /** * list of permissions required to create objects - * - * @var array + * @var array */ protected $permissionsCreate = array(); /** * list of permissions required to delete objects - * - * @var array + * @var array */ protected $permissionsDelete = array(); /** * list of permissions required to update objects - * - * @var array + * @var array */ protected $permissionsUpdate = array(); /** * values returned by executed action - * * @var mixed */ protected $returnValues = null; @@ -235,18 +226,16 @@ abstract class AbstractDatabaseObjectAction implements IDatabaseObjectAction { } /** - * Creates a new data. + * Creates new database object. * * @return DatabaseObject */ public function create() { - // create data return call_user_func(array($this->className, 'create'), $this->parameters['data']); } /** - * Deletes data. - * Returns the number of deleted data. + * Deletes database object and returns the number of deleted objects. * * @return integer */ -- 2.20.1