protected function checkIfSysFoldersOrEmpty(
        $fieldName,
        $canUseFlexforms,
        $sheet,
        $explanation
    ) {
        $pids = $this->objectToCheck->getConfValueString($fieldName, $sheet);

        // Uses the plural if the configuration value is empty or contains a
        // comma.
        if (($pids === '') || (strrpos($pids, ',') !== false)) {
            $message = 'All the selected pages need to be system folders so '
                . 'that data records are tidily separated from front-end '
                . 'content. ' . $explanation;
        } else {
            $message = 'The selected page needs to be a system folder so that '
                . 'data records are tidily separated from front-end content. '
                . $explanation;
        }
        $this->checkPageTypeOrEmpty(
            $fieldName,
            $canUseFlexforms,
            $sheet,
            $message,
            '=254'
        );
    }
protected function checkIfSysFoldersOrEmpty(
        $fieldName,
        $canUseFlexforms,
        $sheet,
        $explanation
    ) {
        $pids = $this->objectToCheck->getConfValueString($fieldName, $sheet);

        // Uses the plural if the configuration value is empty or contains a
        // comma.
        if (($pids === '') || (strrpos($pids, ',') !== false)) {
            $message = 'All the selected pages need to be system folders so '
                . 'that data records are tidily separated from front-end '
                . 'content. ' . $explanation;
        } else {
            $message = 'The selected page needs to be a system folder so that '
                . 'data records are tidily separated from front-end content. '
                . $explanation;
        }
        $this->checkPageTypeOrEmpty(
            $fieldName,
            $canUseFlexforms,
            $sheet,
            $message,
            '=254'
        );
    }
protected function checkIfSysFoldersOrEmpty ( $ fieldName , $ canUseFlexforms , $ sheet , $ explanation ) { $ pids = $ this -> objectToCheck -> getConfValueString ( $ fieldName , $ sheet ) ; // Uses the plural if the configuration value is empty or contains a // comma. if ( ( $ pids === '' ) || ( strrpos ( $ pids , ',' ) !== false ) ) { $ message = 'All the selected pages need to be system folders so ' . 'that data records are tidily separated from front-end ' . 'content. ' . $ explanation ; } else { $ message = 'The selected page needs to be a system folder so that ' . 'data records are tidily separated from front-end content. ' . $ explanation ; } $ this -> checkPageTypeOrEmpty ( $ fieldName , $ canUseFlexforms , $ sheet , $ message , '=254' ) ; }
Checks whether a configuration value either is empty or contains a
comma-separated list of system folder PIDs.

@param string $fieldName
TS setup field name to extract, must not be empty
@param bool $canUseFlexforms
whether the value can also be set via flexforms (this will be
mentioned in the error message)
@param string $sheet
flexforms sheet pointer, eg. "sDEF", will be ignored if
$canUseFlexforms is set to FALSE
@param string $explanation
a sentence explaining what that configuration value is needed for,
must not be empty

@return void
Checks whether a configuration value either is empty or contains a comma - separated list of system folder PIDs .