function XBBCodeFilter::XBBCodeFilter in Extensible BBCode 5
Same name and namespace in other branches
- 6 xbbcode.filter.inc \XBBCodeFilter::XBBCodeFilter()
File
- ./
xbbcode-filter.php, line 12
Class
Code
function XBBCodeFilter($tags, $format = -1) {
$this->tags = $tags;
$this->format = $format;
$this->weighted_tags = array();
foreach ($this->tags as $key => $tag) {
$this->weighted_tags[$tag['weight']][] = $key;
}
}