private function fig_cdata(Context $context) {
        $filename = $this->dataFile;
        $realfilename = dirname($context->getFilename()).'/'.$filename;
        if(! file_exists($realfilename)) {
            $message = "File not found: $filename called from: " . $context->getFilename(). '(' . $this->xmlLineNumber . ')';
            throw new FileNotFoundException($message, $filename);
        }
        $cdata = file_get_contents($realfilename);
        return $cdata;
    }
private function fig_cdata(Context $context) {
        $filename = $this->dataFile;
        $realfilename = dirname($context->getFilename()).'/'.$filename;
        if(! file_exists($realfilename)) {
            $message = "File not found: $filename called from: " . $context->getFilename(). '(' . $this->xmlLineNumber . ')';
            throw new FileNotFoundException($message, $filename);
        }
        $cdata = file_get_contents($realfilename);
        return $cdata;
    }
private function fig_cdata ( Context $ context ) { $ filename = $ this -> dataFile ; $ realfilename = dirname ( $ context -> getFilename ( ) ) . '/' . $ filename ; if ( ! file_exists ( $ realfilename ) ) { $ message = "File not found: $filename called from: " . $ context -> getFilename ( ) . '(' . $ this -> xmlLineNumber . ')' ; throw new FileNotFoundException ( $ message , $ filename ) ; } $ cdata = file_get_contents ( $ realfilename ) ; return $ cdata ; }
Imports at the current output position
the contents of specified file unparsed, rendered as is.
@param Context $context
@return string
@throws FileNotFoundException
Imports at the current output position the contents of specified file unparsed rendered as is .