Inheritance diagram for oxTagCloud:
Collaboration diagram for oxTagCloud:Public Member Functions | |
| __construct () | |
| setProductId ($sProductId) | |
| setLanguageId ($iLangId) | |
| setExtendedMode ($blExtended) | |
| getLanguageId () | |
| getProductId () | |
| getTagMaxLength () | |
| isExtended () | |
| getCloudArray ($sProductId=null, $blExtended=null, $iLang=null) | |
| getTagLink ($sTag) | |
| getTagTitle ($sTag) | |
| getTagSize ($sTag) | |
| getTags ($sArtId=null, $blExtended=false, $iLang=null) | |
| _fixTagLength ($sTag) | |
| stripMetaChars ($sText) | |
| prepareTags ($sTags) | |
| trimTags ($sTags) | |
| resetTagCache ($iLang=null) | |
| canBeTagged ($sTagTitle) | |
Protected Member Functions | |
| _getMaxHit () | |
| _sortTags ($aTags, $iLang=null) | |
| _getFontSize ($iHit, $iMaxHit) | |
| _getCacheKey ($blExtended, $iLang=null) | |
Protected Attributes | |
| $_sCacheKey = "tagcloud_" | |
| $_blExtended = false | |
| $_sProductId = null | |
| $_iLangId = null | |
| $_iMaxHit = null | |
| $_aCloudArray = null | |
| $_sSeparator = ' ' | |
| $_iTagMaxLength = 60 | |
| $_aMetaChars = array('+','-','>','<','(',')','~','*','"','\'','\\','[',']','{','}',';',':','.','/','|','!','@','#','$','%','^','&','?','=','`') | |
Class dedicateg to tag cloud handling
Definition at line 17 of file oxtagcloud.php.
| oxTagCloud.__construct | ( | ) |
Object constructor. Initializes separator.
Reimplemented from oxSuperCfg.
Definition at line 90 of file oxtagcloud.php.
| oxTagCloud._fixTagLength | ( | $ | sTag | ) |
Takes tag string and makes shorter tags longer by adding underscore.
| string | $sTag given tag |
Definition at line 415 of file oxtagcloud.php.
| oxTagCloud._getCacheKey | ( | $ | blExtended, | |
| $ | iLang = null | |||
| ) | [protected] |
Returns tag cache key name.
| bool | $blExtended Whether to display full list | |
| int | $iLang preferred language [optional] |
Definition at line 536 of file oxtagcloud.php.
| oxTagCloud._getFontSize | ( | $ | iHit, | |
| $ | iMaxHit | |||
| ) | [protected] |
Returns font size value for current occurence depending on max occurence.
| int | $iHit hit count | |
| int | $iMaxHit max hits count |
Definition at line 388 of file oxtagcloud.php.
| oxTagCloud._getMaxHit | ( | ) | [protected] |
| oxTagCloud._sortTags | ( | $ | aTags, | |
| $ | iLang = null | |||
| ) | [protected] |
Sorts passed tag array. Using MySQL for sorting (to keep user defined ordering way).
| array | $aTags tags to sort | |
| int | $iLang preferred language [optional] |
Definition at line 349 of file oxtagcloud.php.
| oxTagCloud.canBeTagged | ( | $ | sTagTitle | ) |
Checks if tags was already tagged for the same product
| string | $sTagTitle given tag |
Definition at line 548 of file oxtagcloud.php.
| oxTagCloud.getCloudArray | ( | $ | sProductId = null, |
|
| $ | blExtended = null, |
|||
| $ | iLang = null | |||
| ) |
Returns extended tag cloud array
| string | $sProductId product id [optional] | |
| bool | $blExtended extended cloud array mode [optional] | |
| int | $iLang language id [optional] |
Definition at line 185 of file oxtagcloud.php.
| oxTagCloud.getLanguageId | ( | ) |
| oxTagCloud.getProductId | ( | ) |
Returns current tag cloud product id (if available)
Definition at line 151 of file oxtagcloud.php.
| oxTagCloud.getTagLink | ( | $ | sTag | ) |
Returns tag url (seo or dynamic depends on shop mode)
| string | $sTag tag title |
Definition at line 225 of file oxtagcloud.php.
| oxTagCloud.getTagMaxLength | ( | ) |
| oxTagCloud.getTags | ( | $ | sArtId = null, |
|
| $ | blExtended = false, |
|||
| $ | iLang = null | |||
| ) |
Returns tag array
| string | $sArtId article id | |
| bool | $blExtended if can extend tags | |
| int | $iLang preferred language [optional] |
Definition at line 288 of file oxtagcloud.php.
| oxTagCloud.getTagSize | ( | $ | sTag | ) |
Returns tag size
| string | $sTag tag title |
Definition at line 269 of file oxtagcloud.php.
| oxTagCloud.getTagTitle | ( | $ | sTag | ) |
Returns html safe tag title
| string | $sTag tag title |
Definition at line 244 of file oxtagcloud.php.
| oxTagCloud.isExtended | ( | ) |
| oxTagCloud.prepareTags | ( | $ | sTags | ) |
Takes tags string, checks each tag length and makes shorter tags longer if needed. This is needed for FULLTEXT index Also if tag is longer than tag's max length - cuts it.
| string | $sTags given tag |
Definition at line 457 of file oxtagcloud.php.
| oxTagCloud.resetTagCache | ( | $ | iLang = null |
) |
Resets tag cache
| int | $iLang preferred language [optional] |
Definition at line 517 of file oxtagcloud.php.
| oxTagCloud.setExtendedMode | ( | $ | blExtended | ) |
Tag cloud mode setter (extended or not)
| bool | $blExtended if true - extended cloud array will be returned |
Definition at line 128 of file oxtagcloud.php.
| oxTagCloud.setLanguageId | ( | $ | iLangId | ) |
Tag cloud language id setter
| int | $iLangId language id |
Definition at line 116 of file oxtagcloud.php.
| oxTagCloud.setProductId | ( | $ | sProductId | ) |
Tag cloud product id setter
| string | $sProductId product id |
Definition at line 104 of file oxtagcloud.php.
| oxTagCloud.stripMetaChars | ( | $ | sText | ) |
Strips any mysql FULLTEXT specific meta characters.
| string | $sText given text |
Definition at line 435 of file oxtagcloud.php.
| oxTagCloud.trimTags | ( | $ | sTags | ) |
Trims spaces from tags, removes unnecessary commas, dashes and underscores.
| string | $sTags given tag |
Definition at line 490 of file oxtagcloud.php.
oxTagCloud.$_aCloudArray = null [protected] |
Definition at line 59 of file oxtagcloud.php.
oxTagCloud.$_aMetaChars = array('+','-','>','<','(',')','~','*','"','\'','\\','[',']','{','}',';',':','.','/','|','!','@','#','$','%','^','&','?','=','`') [protected] |
Definition at line 84 of file oxtagcloud.php.
oxTagCloud.$_blExtended = false [protected] |
Definition at line 31 of file oxtagcloud.php.
oxTagCloud.$_iLangId = null [protected] |
Definition at line 45 of file oxtagcloud.php.
oxTagCloud.$_iMaxHit = null [protected] |
Definition at line 52 of file oxtagcloud.php.
oxTagCloud.$_iTagMaxLength = 60 [protected] |
Definition at line 75 of file oxtagcloud.php.
oxTagCloud.$_sCacheKey = "tagcloud_" [protected] |
Definition at line 24 of file oxtagcloud.php.
oxTagCloud.$_sProductId = null [protected] |
Definition at line 38 of file oxtagcloud.php.
oxTagCloud.$_sSeparator = ' ' [protected] |
Definition at line 67 of file oxtagcloud.php.
1.7.1