public function checkTemplate($template, Tag $tag = null)
	{
		if ($this->disabled)
		{
			return;
		}

		if (!isset($tag))
		{
			$tag = new Tag;
		}

		// Load the template into a DOMDocument
		$dom = TemplateLoader::load($template);

		foreach ($this->collection as $check)
		{
			$check->check($dom->documentElement, $tag);
		}
	}
public function checkTemplate($template, Tag $tag = null)
	{
		if ($this->disabled)
		{
			return;
		}

		if (!isset($tag))
		{
			$tag = new Tag;
		}

		// Load the template into a DOMDocument
		$dom = TemplateLoader::load($template);

		foreach ($this->collection as $check)
		{
			$check->check($dom->documentElement, $tag);
		}
	}
public function checkTemplate ( $ template , Tag $ tag = null ) { if ( $ this -> disabled ) { return ; } if ( ! isset ( $ tag ) ) { $ tag = new Tag ; } // Load the template into a DOMDocument $ dom = TemplateLoader :: load ( $ template ) ; foreach ( $ this -> collection as $ check ) { $ check -> check ( $ dom -> documentElement , $ tag ) ; } }
Check a given template for disallowed content

@param  string $template Template
@param  Tag    $tag      Tag this template belongs to
@return void
Check a given template for disallowed content