/** * @see \wcf\data\ISortableAction::validateUpdatePosition() */ public function validateUpdatePosition() { WCF::getSession()->checkPermissions($this->permissionsUpdate); if (!isset($this->parameters['data']['structure']) || !is_array($this->parameters['data']['structure'])) { throw new UserInputException('structure'); } $noticeList = new NoticeList(); $noticeList->getConditionBuilder()->add('notice.noticeID IN (?)', array($this->parameters['data']['structure'][0])); if ($noticeList->countObjects() != count($this->parameters['data']['structure'][0])) { throw new UserInputException('structure'); } $this->readInteger('offset', true, 'data'); }