JBZoo\Data\Data::_readFile PHP Method

_readFile() protected method

protected _readFile ( string $filePath ) : null | string
$filePath string
return null | string
    protected function _readFile($filePath)
    {
        $contents = null;
        if ($realPath = realpath($filePath)) {
            $handle = fopen($realPath, "rb");
            $contents = fread($handle, filesize($realPath));
            fclose($handle);
        }
        return $contents;
    }