vB_Utility_Bbcode_Parser
in package
Uses
vB_Utility_Trait_NoSerialize
Table of Contents
Methods
- __construct() : mixed
- __serialize() : array<string|int, mixed>
- __sleep() : array<string|int, mixed>
- __unserialize() : void
- __wakeup() : void
- replaceHashTokensWithBBCode() : mixed
Methods
__construct()
public
__construct(string $text, vB_Utility_String $stringutil, array<string|int, mixed> $tags, array<string|int, mixed> $adapters) : mixed
Parameters
- $text : string
-
-- the bbcode text to parse
- $stringutil : vB_Utility_String
-
-- the string utility initalized to the correct charset for the text
- $tags : array<string|int, mixed>
-
-- expected format is the return form vB_Api_Bbcode->fetchTagList(). This is not ideal but it already exists and it's not worth adopting another format at this time. Currently we only use this to find "noparse" tags that are enabled, but, as we expand this we'll potentially use more of this
- $adapters : array<string|int, mixed>
-
-- functions/objects for marshalling dependencys with the vB framework the intent here is to allow things like different adapters for frontend/backend/and especially unit tests as needed. 'hashtags' => $callable($tagslist). Returns a list of valid hashtags with replacement text for those tags.
__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__unserialize()
public
__unserialize(mixed $serialized) : void
Parameters
- $serialized : mixed
__wakeup()
public
__wakeup() : void
replaceHashTokensWithBBCode()
public
replaceHashTokensWithBBCode() : mixed