From b406bc4057cdcffd82870e1c2f198cd1b5fae05c Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 9 Jan 2013 13:10:05 +0100 Subject: [PATCH] Adds comments --- .../system/clipboard/action/AbstractClipboardAction.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcfsetup/install/files/lib/system/clipboard/action/AbstractClipboardAction.class.php b/wcfsetup/install/files/lib/system/clipboard/action/AbstractClipboardAction.class.php index 85b35bcf0f..0fe1a4fae8 100644 --- a/wcfsetup/install/files/lib/system/clipboard/action/AbstractClipboardAction.class.php +++ b/wcfsetup/install/files/lib/system/clipboard/action/AbstractClipboardAction.class.php @@ -44,11 +44,14 @@ abstract class AbstractClipboardAction implements IClipboardAction { $item = new ClipboardEditorItem(); $item->setName($this->getTypeName().'.'.$actionName); + + // set action class-related data if (in_array($actionName, $this->actionClassActions)) { $item->addParameter('actionName', $actionName); $item->addParameter('className', $this->getClassName()); } + // validate objects if relevant method exists and set valid object ids $methodName = 'validate'.ucfirst($actionName); if (method_exists($this, $methodName)) { $objectIDs = $this->$methodName(); -- 2.20.1