• Модуль: seo
  • Путь к файлу: ~/bitrix/modules/seo/lib/robotsfile.php
  • Класс: BitrixSeoRobotsFile
  • Вызов: RobotsFile::addSectionRule
protected function addSectionRule($section, $rule)
{
	$section = ToUpper($section);
	foreach($this->contents as $currentAgent => $arRules)
	{
		if(ToUpper($currentAgent) == $section)
		{
			$this->contents[$section][] = $rule;
			return;
		}
	}

	$this->contents[$section] = array($rule);
}