JBBCode/Parser.php
public function addCodeDefinition(CodeDefinition $definition)
    {
        $this->bbcodes[$definition->getTagName()][$definition->usesOption()] = $definition;
        return $this;
    }
public function addCodeDefinition(CodeDefinition $definition)
    {
        $this->bbcodes[$definition->getTagName()][$definition->usesOption()] = $definition;
        return $this;
    }
public function addCodeDefinition ( CodeDefinition $ definition ) { $ this -> bbcodes [ $ definition -> getTagName ( ) ] [ $ definition -> usesOption ( ) ] = $ definition ; return $ this ; }
Adds a complex bbcode definition. You may subclass the CodeDefinition class, instantiate a definition of your new
class and add it to the parser through this method.

@param CodeDefinition $definition the bbcode definition to add

@return Parser
Adds a complex bbcode definition . You may subclass the CodeDefinition class instantiate a definition of your new class and add it to the parser through this method .