OXID eShop CE
4.8.11
|
Public Member Functions | |
__construct () | |
setProductId ($sProductId) | |
getProductId () | |
setLanguageId ($iLangId) | |
getLanguageId () | |
setExtendedMode ($blExtended) | |
isExtended () | |
setTagList (oxITagList $oTagList) | |
getTagList () | |
setCloudArray ($aTagCloudArray) | |
getCloudArray ($sProductId=null, $blExtended=null, $iLang=null) | |
formCloudArray (oxITagList $oTagList) | |
getTagSize ($sTag) | |
getMaxAmount () | |
resetTagCache ($iLang=null) | |
resetCache () | |
getTags ($sArtId=null, $blExtended=false, $iLang=null) | |
prepareTags ($sTags) | |
trimTags ($sTags) | |
stripMetaChars ($sText) | |
getTagMaxLength () | |
getTagLink ($sTag) | |
getTagTitle ($sTag) | |
canBeTagged ($sTagTitle) | |
_fixTagLength ($sTag) | |
Public Member Functions inherited from oxSuperCfg | |
__call ($sMethod, $aArgs) | |
getConfig () | |
setConfig ($oConfig) | |
getSession () | |
setSession ($oSession) | |
getUser () | |
setUser ($oUser) | |
isAdmin () | |
setAdminMode ($blAdmin) |
Protected Member Functions | |
_getCacheKey ($blExtended, $iLang=null) | |
_formCacheKey ($sTagListCacheId=null) | |
_getMaxHit () | |
_getTagHitCount ($oTag) | |
_getFontSize ($iHit, $iMaxHit) | |
_sortTags ($aTags, $iLang=null) |
Protected Attributes | |
$_sCacheKey = "tagcloud" | |
$_iMaxHit = null | |
$_aCloudArray = null | |
$_blExtended = false | |
$_sSeparator = ',' | |
$_iTagMaxLength = 60 | |
$_sProductId = null | |
$_iLangId = null | |
$_aMetaChars = array('+','-','>','<','(',')','~','*','"','\'','\\','[',']','{','}',';',':','.','/','|','!','@','#','$','%','^','&','?','=','`') |
Additional Inherited Members | |
Static Protected Attributes inherited from oxSuperCfg | |
static | $_oConfig = null |
static | $_oSession = null |
static | $_oRights = null |
static | $_oActUser = null |
static | $_blIsAdmin = null |
Class dedicateg to tag cloud handling
Definition at line 15 of file oxtagcloud.php.
oxTagCloud::__construct | ( | ) |
Object constructor. Initializes separator.
Reimplemented from oxSuperCfg.
Definition at line 95 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 548 of file oxtagcloud.php.
|
protected |
Returns tag cache key name.
string | $sTagListCacheId | Whether to display full list |
Definition at line 583 of file oxtagcloud.php.
|
protected |
Returns tag cache key name.
bool | $blExtended | Whether to display full list |
int | $iLang | preferred language [optional] |
Definition at line 571 of file oxtagcloud.php.
|
protected |
Returns font size value for current occurence depending on max occurence.
int | $iHit | hit count |
int | $iMaxHit | max hits count |
Definition at line 623 of file oxtagcloud.php.
|
protected |
|
protected |
Returns tag hit count. Used for _getMaxHit array mapping
oxTag | $oTag | tag object |
Definition at line 610 of file oxtagcloud.php.
|
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 653 of file oxtagcloud.php.
oxTagCloud::canBeTagged | ( | $sTagTitle | ) |
Checks if tags was already tagged for the same product
string | $sTagTitle | given tag |
Definition at line 532 of file oxtagcloud.php.
oxTagCloud::formCloudArray | ( | oxITagList | $oTagList | ) |
Returns tag cloud array
oxITagList | $oTagList | Tag List |
Definition at line 258 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 224 of file oxtagcloud.php.
oxTagCloud::getLanguageId | ( | ) |
Returns current tag cloud language id
Definition at line 150 of file oxtagcloud.php.
oxTagCloud::getMaxAmount | ( | ) |
Returns maximum amount of tags, that should be shown in list
Definition at line 311 of file oxtagcloud.php.
oxTagCloud::getProductId | ( | ) |
Returns current tag cloud product id (if available)
Definition at line 124 of file oxtagcloud.php.
oxTagCloud::getTagLink | ( | $sTag | ) |
Returns tag url (seo or dynamic depends on shop mode)
string | $sTag | tag title |
Definition at line 502 of file oxtagcloud.php.
oxTagCloud::getTagList | ( | ) |
oxTagCloud::getTagMaxLength | ( | ) |
Returns current maximum tag length
Definition at line 487 of file oxtagcloud.php.
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 365 of file oxtagcloud.php.
oxTagCloud::getTagSize | ( | $sTag | ) |
Returns tag size
string | $sTag | tag title |
Definition at line 294 of file oxtagcloud.php.
oxTagCloud::getTagTitle | ( | $sTag | ) |
Returns html safe tag title
string | $sTag | tag title |
Definition at line 517 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 404 of file oxtagcloud.php.
oxTagCloud::resetCache | ( | ) |
oxTagCloud::resetTagCache | ( | $iLang = null | ) |
Resets tag cache
int | $iLang | preferred language [optional] |
Definition at line 327 of file oxtagcloud.php.
oxTagCloud::setCloudArray | ( | $aTagCloudArray | ) |
Sets tag cloud array
array | $aTagCloudArray | tag cloud array |
Definition at line 209 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 165 of file oxtagcloud.php.
oxTagCloud::setLanguageId | ( | $iLangId | ) |
Tag cloud language id setter
int | $iLangId | language id |
Definition at line 138 of file oxtagcloud.php.
oxTagCloud::setProductId | ( | $sProductId | ) |
Created oxArticleTagSet object and passes it to oxTagCloud::setTagSet
string | $sProductId | product id |
Definition at line 108 of file oxtagcloud.php.
oxTagCloud::setTagList | ( | oxITagList | $oTagList | ) |
Sets oxITagList object
oxITagList | $oTagList | Tag cloud set object, which implements oxITagList |
Definition at line 187 of file oxtagcloud.php.
oxTagCloud::stripMetaChars | ( | $sText | ) |
Strips any mysql FULLTEXT specific meta characters.
string | $sText | given text |
Definition at line 467 of file oxtagcloud.php.
oxTagCloud::trimTags | ( | $sTags | ) |
Trims spaces from tags, removes unnecessary commas, dashes and underscores.
string | $sTags | given tag |
Definition at line 439 of file oxtagcloud.php.
|
protected |
Definition at line 36 of file oxtagcloud.php.
|
protected |
Definition at line 90 of file oxtagcloud.php.
|
protected |
Definition at line 43 of file oxtagcloud.php.
|
protected |
Definition at line 80 of file oxtagcloud.php.
|
protected |
Definition at line 29 of file oxtagcloud.php.
|
protected |
Definition at line 62 of file oxtagcloud.php.
|
protected |
Definition at line 22 of file oxtagcloud.php.
|
protected |
Definition at line 71 of file oxtagcloud.php.
|
protected |
Definition at line 52 of file oxtagcloud.php.