Sonata\Exporter\Writer\SitemapWriter::addSitemapLine PHP Метод

addSitemapLine() защищенный Метод

Add a new line into the sitemap part.
protected addSitemapLine ( string $line )
$line string
    protected function addSitemapLine($line)
    {
        if ($this->bufferUrlCount >= self::LIMIT_URL) {
            $this->generateNewPart();
        }
        if ($this->bufferSize + strlen($line) + 9 > self::LIMIT_SIZE) {
            $this->generateNewPart();
        }
        ++$this->bufferUrlCount;
        $this->bufferSize += fwrite($this->buffer, $line);
    }