/** * @see \wcf\system\worker\IWorker::getProgress() */ public function getProgress() { $progress = parent::getProgress(); if ($progress == 100) { // unmark users ClipboardHandler::getInstance()->unmark($this->parameters['userIDs'], ClipboardHandler::getInstance()->getObjectTypeID('com.woltlab.wcf.user')); } return $progress; }
/** * @see wcf\system\worker\IWorker::getProgress() */ public function getProgress() { $progress = parent::getProgress(); if ($progress == 100) { // clear session $userTransferData = WCF::getSession()->getVar('userTransferData'); unset($userTransferData[$this->parameters['transferID']]); WCF::getSession()->register('userTransferData', $userTransferData); } return $progress; }
/** * @see wcf\system\worker\IWorker::getProgress() */ public function getProgress() { $progress = parent::getProgress(); if ($progress == 100) { // clear markings $typeID = ClipboardHandler::getInstance()->getObjectTypeID('com.woltlab.wcf.user'); ClipboardHandler::getInstance()->removeItems($typeID); // clear session $userMailData = WCF::getSession()->getVar('userMailData'); unset($userMailData[$this->parameters['mailID']]); WCF::getSession()->register('userMailData', $userMailData); } return $progress; }
/** * @see \wcf\system\worker\IWorker */ public function __construct(array $parameters) { parent::__construct($parameters); $this->objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.user.activityPointEvent'); }
/** * @see \wcf\system\worker\IWorker::getLoopCount() */ public function setLoopCount($loopCount) { parent::setLoopCount($loopCount); $this->initObjectList(); }