public function setCssFile($cssFile)
    {
        if (!$this->cssFileIsCached($cssFile)) {
            $absoluteFileName = GeneralUtility::getFileAbsFileName($cssFile);
            if (($cssFile !== '') && is_readable($absoluteFileName)
            ) {
                self::$cssFileCache[$cssFile] = file_get_contents($absoluteFileName);
            } else {
                self::$cssFileCache[$cssFile] = '';
            }
        }

        $this->setAsString('cssFile', self::$cssFileCache[$cssFile]);
    }
public function setCssFile($cssFile)
    {
        if (!$this->cssFileIsCached($cssFile)) {
            $absoluteFileName = GeneralUtility::getFileAbsFileName($cssFile);
            if (($cssFile !== '') && is_readable($absoluteFileName)
            ) {
                self::$cssFileCache[$cssFile] = file_get_contents($absoluteFileName);
            } else {
                self::$cssFileCache[$cssFile] = '';
            }
        }

        $this->setAsString('cssFile', self::$cssFileCache[$cssFile]);
    }
public function setCssFile ( $ cssFile ) { if ( ! $ this -> cssFileIsCached ( $ cssFile ) ) { $ absoluteFileName = GeneralUtility :: getFileAbsFileName ( $ cssFile ) ; if ( ( $ cssFile !== '' ) && is_readable ( $ absoluteFileName ) ) { self :: $ cssFileCache [ $ cssFile ] = file_get_contents ( $ absoluteFileName ) ; } else { self :: $ cssFileCache [ $ cssFile ] = '' ; } } $ this -> setAsString ( 'cssFile' , self :: $ cssFileCache [ $ cssFile ] ) ; }
Sets the CSS file for sending an e-mail.

@param string $cssFile the complete path to a valid CSS file, may be empty

@return void
Sets the CSS file for sending an e - mail .