Class Mentions
This really is a pseudo class, I couldn't justify having instance of it while mentioning so I just made every method static
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Mentions.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Mentions.php
public static
array
|
#
getMentionsByContent( string $content_type, integer $content_id, array $members = array() )
Returns mentions for a specific content |
public static
|
#
insertMentions( string $content_type, integer $content_id, array $members, integer $id_member )
Inserts mentioned members |
public static
string
|
|
public static
array
|
#
getMentionedMembers( string $body )
Takes a piece of text and finds all the mentioned members in it |
protected static
array
|
#
getPossibleMentions( string $body )
Parses a body in order to see if there are any mentions, returns possible mention names |
protected static
string
|
$char
|
#
'@'
|