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

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

public write ( $output, $style = null )
    public function write($output, $style = null)
    {
        foreach ($this->outputHandles as $outputHandle) {
            // do we need to colour the output?
            if ($style && $outputHandle['colour']) {
                $msg = $this->colourize($output, $style);
            } else {
                $msg = $output;
            }
            // send the output
            fwrite($outputHandle['handle'], $msg);
            // force the output to appear, in case where we are sending
            // it to has some sort of buffering in operation
            fflush($outputHandle['handle']);
        }
    }