private function getConfValue(
        $fieldName,
        $sheet = 'sDEF',
        $isFileName = false,
        $ignoreFlexform = false
    ) {
        $flexformsValue = '';
        if (!$ignoreFlexform) {
            $flexformsValue = $this->pi_getFFvalue(
                $this->cObj->data['pi_flexform'],
                $fieldName,
                $sheet
            );
        }

        if ($isFileName && $flexformsValue !== null && $flexformsValue !== '') {
            $flexformsValue = $this->addPathToFileName($flexformsValue);
        }
        $confValue = isset($this->conf[$fieldName])
            ? $this->conf[$fieldName] : '';

        return $flexformsValue ?: $confValue;
    }
private function getConfValue(
        $fieldName,
        $sheet = 'sDEF',
        $isFileName = false,
        $ignoreFlexform = false
    ) {
        $flexformsValue = '';
        if (!$ignoreFlexform) {
            $flexformsValue = $this->pi_getFFvalue(
                $this->cObj->data['pi_flexform'],
                $fieldName,
                $sheet
            );
        }

        if ($isFileName && $flexformsValue !== null && $flexformsValue !== '') {
            $flexformsValue = $this->addPathToFileName($flexformsValue);
        }
        $confValue = isset($this->conf[$fieldName])
            ? $this->conf[$fieldName] : '';

        return $flexformsValue ?: $confValue;
    }
private function getConfValue ( $ fieldName , $ sheet = 'sDEF' , $ isFileName = false , $ ignoreFlexform = false ) { $ flexformsValue = '' ; if ( ! $ ignoreFlexform ) { $ flexformsValue = $ this -> pi_getFFvalue ( $ this -> cObj -> data [ 'pi_flexform' ] , $ fieldName , $ sheet ) ; } if ( $ isFileName && $ flexformsValue !== null && $ flexformsValue !== '' ) { $ flexformsValue = $ this -> addPathToFileName ( $ flexformsValue ) ; } $ confValue = isset ( $ this -> conf [ $ fieldName ] ) ? $ this -> conf [ $ fieldName ] : '' ; return $ flexformsValue ? : $ confValue ; }
Gets a value from flexforms or TS setup.
The priority lies on flexforms; if nothing is found there, the value
from TS setup is returned. If there is no field with that name in TS setup,
an empty string is returned.

@param string $fieldName field name to extract
@param string $sheet sheet pointer, eg. "sDEF"
@param bool $isFileName whether this is a filename, which has to be combined with a path
@param bool $ignoreFlexform
whether to ignore the flexform values and just get the settings from TypoScript, may be empty

@return string the value of the corresponding flexforms or TS setup
entry (may be empty)
Gets a value from flexforms or TS setup . The priority lies on flexforms ; if nothing is found there the value from TS setup is returned . If there is no field with that name in TS setup an empty string is returned .