This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

BBCode::__construct()

Description

Source

File: bp-forums/admin/parser.php

1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
private function __construct()
{
    $this->defaults = new BBCodeLibrary;
    $this->tag_rules = $this->defaults->default_tag_rules;
    $this->smileys = $this->defaults->default_smileys;
    $this->enable_smileys = true;
    $this->smiley_regex = false;
    $this->smiley_dir = $this->GetDefaultSmileyDir();
    $this->smiley_url = $this->GetDefaultSmileyURL();
    $this->wiki_url = $this->GetDefaultWikiURL();
    $this->local_img_dir = $this->GetDefaultLocalImgDir();
    $this->local_img_url = $this->GetDefaultLocalImgURL();
    $this->rule_html = $this->GetDefaultRuleHTML();
    $this->pre_trim = "";
    $this->post_trim = "";
    $this->root_class = 'block';
    $this->lost_start_tags = Array();
    $this->start_tags = Array();
    $this->tag_marker = '[';
    $this->allow_ampsersand = false;
    $this->current_class = $this->root_class;
    $this->debug = false;
    $this->ignore_newlines = false;
    $this->output_limit = 0;
    $this->plain_mode = false;
    $this->was_limited = false;
    $this->limit_tail = "...";
    $this->limit_precision = 0.15;
    $this->detect_urls = false;
    $this->url_pattern = '<a href="{$url/h}">{$text/h}</a>';
    $this->url_targetable = false;
    $this->url_target = false;
}

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.