protected function appendFilters(Attribute $attribute, $filters)
	{
		foreach (preg_split('#\\s*,\\s*#', $filters) as $filterName)
		{
			if (substr($filterName, 0, 1) !== '#'
			 && !in_array($filterName, $this->allowedFilters, true))
			{
				throw new RuntimeException("Filter '" . $filterName . "' is not allowed in BBCodes");
			}

			$filter = $this->configurator->attributeFilters->get($filterName);
			$attribute->filterChain->append($filter);
		}
	}
protected function appendFilters(Attribute $attribute, $filters)
	{
		foreach (preg_split('#\\s*,\\s*#', $filters) as $filterName)
		{
			if (substr($filterName, 0, 1) !== '#'
			 && !in_array($filterName, $this->allowedFilters, true))
			{
				throw new RuntimeException("Filter '" . $filterName . "' is not allowed in BBCodes");
			}

			$filter = $this->configurator->attributeFilters->get($filterName);
			$attribute->filterChain->append($filter);
		}
	}
protected function appendFilters ( Attribute $ attribute , $ filters ) { foreach ( preg_split ( '#\\s*,\\s*#' , $ filters ) as $ filterName ) { if ( substr ( $ filterName , 0 , 1 ) !== '#' && ! in_array ( $ filterName , $ this -> allowedFilters , true ) ) { throw new RuntimeException ( "Filter '" . $ filterName . "' is not allowed in BBCodes" ) ; } $ filter = $ this -> configurator -> attributeFilters -> get ( $ filterName ) ; $ attribute -> filterChain -> append ( $ filter ) ; } }
Append a list of filters to an attribute's filterChain

@param  Attribute $attribute
@param  string    $filters   List of filters, separated with commas
@return void
Append a list of filters to an attribute s filterChain