oxTagCloud Class Reference

Inheritance diagram for oxTagCloud:

Inheritance graph
[legend]
Collaboration diagram for oxTagCloud:

Collaboration graph
[legend]

List of all members.


Detailed Description

Class dedicateg to tag cloud handling

Definition at line 17 of file oxtagcloud.php.


Public Member Functions

 getTags ($sArtId=null, $blExtended=false)
 getTagCloud ($sArtId=null, $blExtended=false)
 prepareTags ($sTags)
 trimTags ($sTags)
 resetTagCache ()

Protected Member Functions

 _sortTags ($aTags)
 _getFontSize ($iHit, $iMaxHit)
 _getCacheKey ($blExtended)

Protected Attributes

 $_sCacheKey = "tagcloud_"

Member Function Documentation

oxTagCloud.getTags ( sArtId = null,
blExtended = false 
)

Returns tag array

Parameters:
string $sArtId article id
bool $blExtended if can extend tags
Returns:
array

Definition at line 34 of file oxtagcloud.php.

oxTagCloud._sortTags ( aTags  )  [protected]

Sorts passed tag array. Using MySQL for sorting (to keep user defined ordering way).

Parameters:
array $aTags tags to sort
Returns:
array

Definition at line 85 of file oxtagcloud.php.

oxTagCloud.getTagCloud ( sArtId = null,
blExtended = false 
)

Returns HTML formated Tag Cloud

Parameters:
string $sArtId article id
bool $blExtended if can extend tags
Returns:
string

Definition at line 124 of file oxtagcloud.php.

oxTagCloud._getFontSize ( iHit,
iMaxHit 
) [protected]

Returns font size value for current occurence depending on max occurence.

Parameters:
int $iHit hit count
int $iMaxHit max hits count
Returns:
int

Definition at line 181 of file oxtagcloud.php.

oxTagCloud.prepareTags ( sTags  ) 

Takes tag string and makes shorter tags longer by adding underscore. This is needed for FULLTEXT index

Parameters:
string $sTags given tag
Returns:
string

Definition at line 209 of file oxtagcloud.php.

oxTagCloud.trimTags ( sTags  ) 

Trims underscores from tags.

Parameters:
string $sTags given tag
Returns:
string

Definition at line 234 of file oxtagcloud.php.

oxTagCloud.resetTagCache (  ) 

Resets tag cache

Returns:
null

Definition at line 253 of file oxtagcloud.php.

oxTagCloud._getCacheKey ( blExtended  )  [protected]

Returns tag cache key name.

Parameters:
bool $blExtended Whether to display full list
Returns:
null

Definition at line 271 of file oxtagcloud.php.


Member Data Documentation

oxTagCloud.$_sCacheKey = "tagcloud_" [protected]

Definition at line 24 of file oxtagcloud.php.


The documentation for this class was generated from the following file:

Generated on Tue Apr 21 15:50:57 2009 for OXID eShop CE by  doxygen 1.5.5