• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/xmlnode.php
  • Класс: specifierCDavXmlNode
  • Вызов: CDavXmlNode::__construct
public function __construct($tagname, $content = false, $attributes = false, $xmlns = null)
{
	$this->tagname = $tagname;
	if (is_object($content))
	{
		$this->content = [&$content];
	}
	else
	{
		$this->content = $content;
	}

	$this->attributes = $attributes;
	if (isset($this->attributes['xmlns']))
	{
		$this->xmlns = $this->attributes['xmlns'];
	}

	if (isset($xmlns))
	{
		$this->xmlns = $xmlns;
		if (!$this->attributes || !is_array($this->attributes))
		{
			$this->attributes = [];
		}
		$this->attributes['xmlns'] = $xmlns;
	}
}