abstract class vB_Taggable_Content_Item

Not quite dead yet. The static functions should be moved to a more appropriate location and then we'll kill it.

Traits

Methods

__sleep()

No description

__wakeup()

No description

static array
filter_tag_list(string|array $taglist, array $errors, boolean $evalerrors = true)

Takes a list of tags and returns a list of valid tags

static 
merge_users($olduserid, $newuserid)

No description

static 
is_tag_valid($tagtext, $errors)

No description

static array
split_tag_list(string $taglist)

Splits the tag list based on an admin-specified set of delimiters (and comma).

static array
convert_synonyms(array $tags, array $errors)

Converts synomyns to canonical tags

Details

in vB_Trait_NoSerialize at line 15
__sleep()

in vB_Trait_NoSerialize at line 20
__wakeup()

at line 54
static array filter_tag_list(string|array $taglist, array $errors, boolean $evalerrors = true)

Takes a list of tags and returns a list of valid tags

Tags are transformed to removed tabs and newlines Tags may be lowercased based on options Tags matching synomyns will Duplicate will be eliminated (case insensitive) Invalid tags will be removed.

Fetch the valid tags from a list. Filters are length, censorship, perms (if desired).

Parameters

string|array $taglist List of tags to add (comma delimited, or an array as is). If array, ensure there are no commas.
array $errors (output) List of errors that happens
boolean $evalerrors Whether to expand the error phrase

Return Value

array List of valid tags

at line 101
static merge_users($olduserid, $newuserid)

Parameters

$olduserid
$newuserid

at line 121
static protected is_tag_valid($tagtext, $errors)

Parameters

$tagtext
$errors

at line 209
static array split_tag_list(string $taglist)

Splits the tag list based on an admin-specified set of delimiters (and comma).

Parameters

string $taglist List of tags

Return Value

array Tags in seperate array entries temporarily make public

at line 256
static protected array convert_synonyms(array $tags, array $errors)

Converts synomyns to canonical tags

If a tag is converted a message will be added to the error array to alert the user Does not handle removing duplicates created by the coversion process

Parameters

array $tags array of tags to convert
array $errors array of errors (in/out param)

Return Value

array the new list of tags