You are here

function XBBCodeFilter::XBBCodeFilter in Extensible BBCode 5

Same name and namespace in other branches
  1. 6 xbbcode.filter.inc \XBBCodeFilter::XBBCodeFilter()

File

./xbbcode-filter.php, line 12

Class

XBBCodeFilter

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;
  }
}