public function allowsDescendant(TemplateInspector $descendant)
	{
		// Test whether the descendant is explicitly disallowed
		if (self::match($descendant->contentBitfield, $this->denyDescendantBitfield))
		{
			return false;
		}

		// Test whether the descendant contains any elements and we disallow elements
		return ($this->allowsChildElements || !$descendant->hasElements);
	}
public function allowsDescendant(TemplateInspector $descendant)
	{
		// Test whether the descendant is explicitly disallowed
		if (self::match($descendant->contentBitfield, $this->denyDescendantBitfield))
		{
			return false;
		}

		// Test whether the descendant contains any elements and we disallow elements
		return ($this->allowsChildElements || !$descendant->hasElements);
	}
public function allowsDescendant ( TemplateInspector $ descendant ) { // Test whether the descendant is explicitly disallowed if ( self :: match ( $ descendant -> contentBitfield , $ this -> denyDescendantBitfield ) ) { return false ; } // Test whether the descendant contains any elements and we disallow elements return ( $ this -> allowsChildElements || ! $ descendant -> hasElements ) ; }
Return whether this template allows a given descendant

@param  TemplateInspector $descendant
@return bool
Return whether this template allows a given descendant