From: Matthias Schmidt Date: Wed, 7 Sep 2011 08:17:11 +0000 (+0200) Subject: Updates documentation of wcf\data\AbstractDatabaseObjectAction X-Git-Tag: 2.0.0_Beta_1~1791^2~2^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=832371b2e7a8fab5e1fb1bd29e89a4084709e924;p=GitHub%2FWoltLab%2FWCF.git Updates documentation of wcf\data\AbstractDatabaseObjectAction --- 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 */