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);
}