application/Espo/Core/Utils/File/Manager.php
public function wrapForDataExport($content, $withObjects = false)
    {
        if (!isset($content)) {
            return false;
        }

        if (!$withObjects) {
            return "<?php\n".
            "return " . var_export($content, true) . ";\n".
            "?>";
        } else {
            return "<?php\n".
            "return " . $this->varExport($content) . ";\n".
            "?>";
        }
    }
public function wrapForDataExport($content, $withObjects = false)
    {
        if (!isset($content)) {
            return false;
        }

        if (!$withObjects) {
            return "<?php\n".
            "return " . var_export($content, true) . ";\n".
            "?>";
        } else {
            return "<?php\n".
            "return " . $this->varExport($content) . ";\n".
            "?>";
        }
    }
public function wrapForDataExport ( $ content , $ withObjects = false ) { if ( ! isset ( $ content ) ) { return false ; } if ( ! $ withObjects ) { return "<?php\n" . "return " . var_export ( $ content , true ) . ";\n" . "?>" ; } else { return "<?php\n" . "return " . $ this -> varExport ( $ content ) . ";\n" . "?>" ; } }
Return content of PHP file

@param string $varName - name of variable which contains the content
@param array $content

@return string | false
Return content of PHP file