Documentation

MentionsParser
in package

Handles parsing username mentions in forum posts.

Tags
author

Samerton

author

fetch404

version
2.0.0-pr13
license

MIT

Table of Contents

Methods

parse()  : string
Parse the given HTML to include @username tags.

Methods

parse()

Parse the given HTML to include @username tags.

public static parse(int $author_id, string $value[, string|null $link = null ][, array<string|int, mixed>|null $alert_short = null ][, array<string|int, mixed>|null $alert_full = null ]) : string
Parameters
$author_id : int

User ID of post creator.

$value : string

Post content.

$link : string|null = null

Link back to post.

$alert_short : array<string|int, mixed>|null = null

Short alert info, leave null to not alert user.

$alert_full : array<string|int, mixed>|null = null

Full alert info, leave null to not alert user.

Return values
string

Parsed post content.


        
On this page

Search results