App\Libraries\BBCodeForDB::parseProfile PHP Метод

parseProfile() публичный Метод

public parseProfile ( $text )
    public function parseProfile($text)
    {
        return preg_replace_callback("#\\[profile\\](.+?)\\[/profile\\]#", function ($m) {
            $name = $this->extraEscapes($m[1]);
            return "[profile:{$this->uid}]{$name}[/profile:{$this->uid}]";
        }, $text);
    }