DataSift\Storyplayer\OutputLib\OutputWriter::addOutputToFile PHP Метод

addOutputToFile() публичный Метод

public addOutputToFile ( $filename )
    public function addOutputToFile($filename)
    {
        // can we open the file?
        $fp = fopen($filename, 'w');
        if (!$fp) {
            throw new E4xx_CannotOpenOutputFile($filename);
        }
        // add the file to our list to write to
        $this->outputHandles[$filename] = ['handle' => $fp, 'colour' => false];
    }