HTTPWatch::toHAR PHP Method

toHAR() public method

If no filename is passed returns the HAR JSON
public toHAR ( $filename = false )
    function toHAR($filename = false)
    {
        if ($filename) {
            $this->watch->Log->ExportHAR($filename);
            return file_exists($filename);
        }
        $filename = tempnam('/tmp', 'watchmenowimgoindown');
        $this->watch->Log->ExportHAR($filename);
        return file_get_contents($filename);
    }