From: Matthias Schmidt Date: Wed, 9 Jan 2013 12:10:05 +0000 (+0100) Subject: Adds comments X-Git-Tag: 2.0.0_Beta_1~569^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b406bc4057cdcffd82870e1c2f198cd1b5fae05c;p=GitHub%2FWoltLab%2FWCF.git Adds comments --- 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();