protected function computeAllowsText()
	{
		foreach (array_filter($this->branches) as $branch)
		{
			if (ElementInspector::disallowsText(end($branch)))
			{
				$this->allowsText = false;

				return;
			}
		}
		$this->allowsText = true;
	}
protected function computeAllowsText()
	{
		foreach (array_filter($this->branches) as $branch)
		{
			if (ElementInspector::disallowsText(end($branch)))
			{
				$this->allowsText = false;

				return;
			}
		}
		$this->allowsText = true;
	}
protected function computeAllowsText ( ) { foreach ( array_filter ( $ this -> branches ) as $ branch ) { if ( ElementInspector :: disallowsText ( end ( $ branch ) ) ) { $ this -> allowsText = false ; return ; } } $ this -> allowsText = true ; }
Compute the allowsText property

A template is said to allow text if none of the leaf elements disallow text

@return void
Compute the allowsText property