function XBBCodeFilter::__construct in Extensible BBCode 7
Construct a filter object from a bundle of tags, and the format ID.
Parameters
$tags: Tag array.
$format: Text format ID.
File
- ./
xbbcode.filter.inc, line 19 - The filtering class. This will be instanced for each filter, and then called to process a piece of text.
Class
- XBBCodeFilter
- @file The filtering class. This will be instanced for each filter, and then called to process a piece of text.
Code
function __construct($tags, $filter, $format) {
$this->tags = $tags;
$this->format = $format;
$this->filter = $filter;
$this->autoclose_tags = $filter->settings['autoclose'];
}