Repository
class Repository
Properties
protected BBCodeMonkey | $bbcodeMonkey | ||
protected DOMDocument | $dom | ||
protected DOMXPath | $xpath |
Methods
array
get(string $name, array $vars = [])
Get a BBCode and its associated tag from this repository
void
createRepositoryException(string $filepath)
Create an exception for a bad repository file path
loadRepository(string $filepath)
Load a repository file into a DOMDocument
void
Details
at line 40
__construct(mixed $value, BBCodeMonkey $bbcodeMonkey)
Constructor
at line 54
array
get(string $name, array $vars = [])
Get a BBCode and its associated tag from this repository
at line 94
protected void
addRules(DOMElement $node, Tag $tag)
Add rules to given tag based on given definition
at line 115
protected InvalidArgumentException
createRepositoryException(string $filepath)
Create an exception for a bad repository file path
at line 126
protected DOMDocument
loadRepository(string $filepath)
Load a repository file into a DOMDocument
at line 150
protected void
replaceVars(DOMElement $node, array $vars)
Replace var elements in given definition