return $this->objectIDs;
}
+ /**
+ * Sets the database objects.
+ *
+ * @param array<wcf\data\DatabaseObject> $objects
+ */
+ public function setObjects(array $objects) {
+ $this->objects = $objects;
+ }
+
/**
* @see wcf\data\IDatabaseObjectAction::getParameters()
*/
}
// read data
- $this->readObjects();
+ if (!count($this->objects)) {
+ $this->readObjects();
+ }
if (!count($this->objects)) {
throw new ValidateActionException('Invalid object id');
}
// read data
- $this->readObjects();
+ if (!count($this->objects)) {
+ $this->readObjects();
+ }
if (!count($this->objects)) {
throw new ValidateActionException('Invalid object id');