public function validateAdditionalFields(
        array &$submittedData,
        SchedulerModuleController $schedulerModule
    ) {
        $result = false;

        // validate site
        $sites = $this->siteRepository->getAvailableSites();
        if (array_key_exists($submittedData['site'], $sites)) {
            $result = true;
        }

        // escape limit
        $submittedData['documentsToIndexLimit'] = intval($submittedData['documentsToIndexLimit']);

        return $result;
    }
public function validateAdditionalFields(
        array &$submittedData,
        SchedulerModuleController $schedulerModule
    ) {
        $result = false;

        // validate site
        $sites = $this->siteRepository->getAvailableSites();
        if (array_key_exists($submittedData['site'], $sites)) {
            $result = true;
        }

        // escape limit
        $submittedData['documentsToIndexLimit'] = intval($submittedData['documentsToIndexLimit']);

        return $result;
    }
public function validateAdditionalFields ( array & $ submittedData , SchedulerModuleController $ schedulerModule ) { $ result = false ; // validate site $ sites = $ this -> siteRepository -> getAvailableSites ( ) ; if ( array_key_exists ( $ submittedData [ 'site' ] , $ sites ) ) { $ result = true ; } // escape limit $ submittedData [ 'documentsToIndexLimit' ] = intval ( $ submittedData [ 'documentsToIndexLimit' ] ) ; return $ result ; }
Checks any additional data that is relevant to this task. If the task
class is not relevant, the method is expected to return TRUE

@param array $submittedData reference to the array containing the data submitted by the user
@param SchedulerModuleController $schedulerModule reference to the calling object (Scheduler's BE module)
@return bool True if validation was ok (or selected class is not relevant), FALSE otherwise
Checks any additional data that is relevant to this task . If the task class is not relevant the method is expected to return TRUE