[ class tree: plugins ] [ index: plugins ] [ all elements ]

Procedural File: tags_from_album.php

Source Location: /zp-extensions/tags_from_album.php

Page Details

Provides a function to print a tag cloud of all image tags from an album optionally including the subalbums or the album tags including sub album tags.

Note: The optional counter prints the total number of the tag used, not just for the select album (as clicking on it will return all anyway.)

Author:  Malte Müller (acrylian)
Functions
getAllTagsFromAlbum  [line 23]

Prints a tag cloud list of the tags in one album and optionally its subalbums.

Parameters:
string   $albumname:  folder name of the album to get the tags from ($subalbums = true this is the base albums)
bool   $subalbums:  TRUE if the tags of subalbum should be. FALSE is default
string   $mode:  "images" for image tags, "albums" for album tags


array getAllTagsFromAlbum( [string $albumname = ""], [bool $subalbums = false], [string $mode = 'images']  )

[ Top ]
getAllTagsFromAlbum_multi_unique  [line 162]

Removes duplicate entries in multi dimensional array.

From kenrbnsn at rbnsn dot com http://uk.php.net/manual/en/function.array-unique.php#57202

Parameters:
array   $array: 


array getAllTagsFromAlbum_multi_unique( array $array  )

[ Top ]
printAllTagsFromAlbum  [line 105]

Prints a tag cloud list of the tags in one album and optionally its subalbums.

Known limitation: If $mode is set to "all" there is no tag count and therefore no tag cloud but a simple list

Parameters:
string   $albumname:  folder name of the album to get the tags from ($subalbums = true this is the base albums)
bool   $subalbums:  TRUE if the tags of subalbum should be. FALSE is default
string   $mode:  "images" for image tags, "albums" for album tags, "all" for both mixed
string   $separator:  how to separate the entries
string   $class:  css classs to style the list
integer   $showcounter:  if the tag count should be shown (no counter if $mode = "all")
bool   $tagcloud:  if set to false a simple list without font size changes will be printed, set to true (default) prints a list as a tag cloud
integere   $size_min:  smallest font size the cloud should display
integer   $size_max:  largest font size the cloud should display
integer   $count_min:  the minimum count for a tag to appear in the output
integer   $count_max:  the floor count for setting the cloud font size to $size_max


void printAllTagsFromAlbum( [string $albumname = ""], [bool $subalbums = false], [string $mode = 'images'], [string $separator = ''], [string $class = ''], [integer $showcounter = true], [bool $tagcloud = true], [integere $size_min = 1], [integer $size_max = 5], [integer $count_min = 1], [integer $count_max = 50]  )

[ Top ]


Documentation generated on Mon, 09 Aug 2010 17:24:12 +0200 by phpDocumentor 1.4.1