'actionName' => $item->getName(),
'internalData' => $item->getInternalData(),
'parameters' => $item->getParameters(),
- 'label' => WCF::getLanguage()->get('wcf.clipboard.item.' . $item->getName()),
+ 'label' => WCF::getLanguage()->getDynamicVariable('wcf.clipboard.item.' . $item->getName(), array('count' => $item->getCount())),
'url' => $item->getURL()
);
}
public function setURL($url) {
$this->url = $url;
}
+
+ /**
+ * Returns number of affected items.
+ *
+ * @return integer
+ */
+ public function getCount() {
+ if (isset($this->parameters['objectIDs'])) {
+ return count($this->parameters['objectIDs']);
+ }
+
+ return 0;
+ }
}