public function addElementToContentSet($element, $type)
    {
        if (!isset($this->content_sets[$type])) {
            $this->content_sets[$type] = '';
        } else {
            $this->content_sets[$type] .= ' | ';
        }
        $this->content_sets[$type] .= $element;
    }
public function addElementToContentSet($element, $type)
    {
        if (!isset($this->content_sets[$type])) {
            $this->content_sets[$type] = '';
        } else {
            $this->content_sets[$type] .= ' | ';
        }
        $this->content_sets[$type] .= $element;
    }
public function addElementToContentSet ( $ element , $ type ) { if ( ! isset ( $ this -> content_sets [ $ type ] ) ) { $ this -> content_sets [ $ type ] = '' ; } else { $ this -> content_sets [ $ type ] .= ' | ' ; } $ this -> content_sets [ $ type ] .= $ element ; }
Convenience function that registers an element to a content set
@param string $element Element to register
@param string $type Name content set (warning: case sensitive, usually upper-case
first letter)
Convenience function that registers an element to a content set