Public Member Functions | |
setSeparator ($sSeparator) | |
getSeparator () | |
set ($sTags, $blPrepare=true) | |
get () | |
getInvalidTags () | |
add ($sTags, $blPrepare=true) | |
addTag ($mTag, $blPrepare=true) | |
clear () | |
formString () | |
__toString () | |
slice ($offset, $length) | |
sort () | |
sortByHitCount () | |
current () | |
next () | |
key () | |
valid () | |
rewind () | |
Protected Member Functions | |
_formTag ($mTag, $blPrepare=true) | |
_tagHitsCmp ($oTag1, $oTag2) | |
Protected Attributes | |
$_sSeparator = ',' | |
$_aTags = array() | |
$_aInvalidTags = array() |
Class dedicated to article tags handling. Is responsible for saving, returning and adding tags for given article.
Definition at line 9 of file oxtagset.php.
oxTagSet.__toString | ( | ) |
oxTagSet._formTag | ( | $ | mTag, | |
$ | blPrepare = true | |||
) | [protected] |
Forms and returns tag
mixed | $mTag tag as a string or as oxTag object | |
bool | $blPrepare if false, tag will not be parsed and stored as is |
Definition at line 246 of file oxtagset.php.
oxTagSet._tagHitsCmp | ( | $ | oTag1, | |
$ | oTag2 | |||
) | [protected] |
Compares two tags by hit count
Definition at line 266 of file oxtagset.php.
oxTagSet.add | ( | $ | sTags, | |
$ | blPrepare = true | |||
) |
Adds tag
string | $sTags tags to add to list | |
bool | $blPrepare if false, separate tags will not be parsed and stored as is |
Definition at line 91 of file oxtagset.php.
oxTagSet.addTag | ( | $ | mTag, | |
$ | blPrepare = true | |||
) |
Adds tag
mixed | $mTag tag as a string or as oxTag object | |
bool | $blPrepare if false, tag will not be parsed and stored as is |
Definition at line 107 of file oxtagset.php.
oxTagSet.clear | ( | ) |
Clears tags set
Definition at line 130 of file oxtagset.php.
oxTagSet.current | ( | ) |
oxTagSet.formString | ( | ) |
oxTagSet.get | ( | ) |
oxTagSet.getInvalidTags | ( | ) |
oxTagSet.getSeparator | ( | ) |
oxTagSet.key | ( | ) |
Return the key of the current element
Definition at line 215 of file oxtagset.php.
oxTagSet.next | ( | ) |
Return the key of the current element
Definition at line 205 of file oxtagset.php.
oxTagSet.rewind | ( | ) |
Rewind the Iterator to the first element
Definition at line 233 of file oxtagset.php.
oxTagSet.set | ( | $ | sTags, | |
$ | blPrepare = true | |||
) |
Clears the list and adds specified tags
string | $sTags article tag | |
bool | $blPrepare if false, separate tags will not be parsed and stored as is |
Definition at line 59 of file oxtagset.php.
oxTagSet.setSeparator | ( | $ | sSeparator | ) |
Sets tag separator
string | $sSeparator tags separator character |
Definition at line 38 of file oxtagset.php.
oxTagSet.slice | ( | $ | offset, | |
$ | length | |||
) |
Slices tags from the list
int | $offset offset | |
int | $length length of tags set |
Definition at line 168 of file oxtagset.php.
oxTagSet.sort | ( | ) |
Sorts current tag set
Definition at line 178 of file oxtagset.php.
oxTagSet.sortByHitCount | ( | ) |
Sorts current tag set
Definition at line 187 of file oxtagset.php.
oxTagSet.valid | ( | ) |
Checks if current position is valid
Definition at line 225 of file oxtagset.php.
oxTagSet.$_aInvalidTags = array() [protected] |
Definition at line 31 of file oxtagset.php.
oxTagSet.$_aTags = array() [protected] |
Definition at line 24 of file oxtagset.php.
oxTagSet.$_sSeparator = ',' [protected] |
Definition at line 17 of file oxtagset.php.