InlineMentionParser
in package
implements
InlineParserInterface
Tags
Interfaces, Classes and Traits
Table of Contents
- $handleRegex : string
- $linkPattern : string
- __construct() : mixed
- createGithubHandleParser() : InlineMentionParser
- createTwitterHandleParser() : InlineMentionParser
- getCharacters() : array<string|int, string>
- parse() : bool
Properties
$handleRegex
private
string
$handleRegex
$linkPattern
private
string
$linkPattern
Methods
__construct()
public
__construct(string $linkPattern[, string $handleRegex = '/^[A-Za-z0-9_]+(?!\w)/' ]) : mixed
Parameters
- $linkPattern : string
- $handleRegex : string = '/^[A-Za-z0-9_]+(?!\w)/'
Return values
mixed —createGithubHandleParser()
public
static createGithubHandleParser() : InlineMentionParser
Return values
InlineMentionParser —createTwitterHandleParser()
public
static createTwitterHandleParser() : InlineMentionParser
Return values
InlineMentionParser —getCharacters()
public
getCharacters() : array<string|int, string>
Return values
array<string|int, string> —parse()
public
parse(InlineParserContext $inlineContext) : bool
Parameters
- $inlineContext : InlineParserContext