Procedural File: image_album_statistics.php
Source Location: /plugins/image_album_statistics.php
Page Details
image_album_statistics -- support functions for "statistics" about images and albums.
Supports such statistics as "most popular", "latest", "top rated", etc. C A U T I O N: With 1.0.4.7 the usage to get an specific album changes. You now have to pass the foldername of an album instead the album title.
| Author: | Malte Müller (acrylian), Stephen Billard (sbillard) |
| Version: | 1.0.5.2 |
Functions
getAlbumStatistic [line 29]
Retuns a list of album statistic accordingly to $option
Parameters:
|
int |
$number: |
the number of albums to get |
|
string |
$option: |
"popular" for the most popular albums, "latest" for the latest uploaded, "mostrated" for the most voted, "toprated" for the best voted "latestupdated" for the latest updated |
string getAlbumStatistic(
[int $number = 5], string $option
)
|
|
getImageStatistic [line 275]
Returns a list of image statistic according to $option
Parameters:
|
string |
$number: |
the number of images to get |
|
string |
$option: |
"popular" for the most popular images, "latest" for the latest uploaded, "latest-date" for the latest uploaded, but fetched by date, "mostrated" for the most voted, "toprated" for the best voted |
|
string |
$albumfolder: |
foldername of an specific album |
string getImageStatistic(
string $number, string $option, [string $albumfolder = '']
)
|
|
printAlbumStatistic [line 107]
Prints album statistic according to $option as an unordered HTML list A css id is attached by default named '$option_album'
Parameters:
|
string |
$number: |
the number of albums to get |
|
string |
$option: |
"popular" for the most popular albums, "latest" for the latest uploaded, "mostrated" for the most voted, "toprated" for the best voted "latestupdated" for the latest updated |
|
bool |
$showtitle: |
if the album title should be shown |
|
bool |
$showdate: |
if the album date should be shown |
|
bool |
$showdesc: |
if the album description should be shown |
|
integer |
$desclength: |
the length of the description to be shown |
|
string |
$showstatistic: |
"hitcounter" for showing the hitcounter (views), "rating" for rating, "rating+hitcounter" for both. |
void printAlbumStatistic(
string $number, string $option, [bool $showtitle = false], [bool $showdate = false], [bool $showdesc = false], [integer $desclength = 40], [string $showstatistic = '']
)
|
|
printAlbumStatisticItem [line 135]
A helper function that only prints a item of the loop within printAlbumStatistic() Not for standalone use.
Parameters:
|
array |
$album: |
the array that getAlbumsStatistic() submitted |
|
string |
$option: |
"popular" for the most popular albums, "latest" for the latest uploaded, "mostrated" for the most voted, "toprated" for the best voted "latestupdated" for the latest updated |
|
bool |
$showtitle: |
if the album title should be shown |
|
bool |
$showdate: |
if the album date should be shown |
|
bool |
$showdesc: |
if the album description should be shown |
|
integer |
$desclength: |
the length of the description to be shown |
|
string |
$showstatistic: |
"hitcounter" for showing the hitcounter (views), "rating" for rating, "rating+hitcounter" for both. |
void printAlbumStatisticItem(
array $album, string $option, [bool $showtitle = false], [bool $showdate = false], [bool $showdesc = false], [integer $desclength = 40], [string $showstatistic = '']
)
|
|
printImageStatistic [line 349]
Prints image statistic according to $option as an unordered HTML list A css id is attached by default named accordingly'$option'
Parameters:
|
string |
$number: |
the number of albums to get |
|
string |
$option: |
"popular" for the most popular images, "latest" for the latest uploaded, "latest-date" for the latest uploaded, but fetched by date, "mostrated" for the most voted, "toprated" for the best voted |
|
string |
$albumfolder: |
foldername of an specific album |
|
bool |
$showtitle: |
if the image title should be shown |
|
bool |
$showdate: |
if the image date should be shown |
|
bool |
$showdesc: |
if the image description should be shown |
|
integer |
$desclength: |
the length of the description to be shown |
|
string |
$showstatistic: |
"hitcounter" for showing the hitcounter (views), "rating" for rating, "rating+hitcounter" for both. |
string printImageStatistic(
string $number, string $option, [string $albumfolder = ''], [bool $showtitle = false], [bool $showdate = false], [bool $showdesc = false], [integer $desclength = 40], [string $showstatistic = '']
)
|
|
printLatestAlbums [line 211]
Prints the latest albums
Parameters:
|
string |
$number: |
the number of albums to get |
|
bool |
$showtitle: |
if the album title should be shown |
|
bool |
$showdate: |
if the album date should be shown |
|
bool |
$showdesc: |
if the album description should be shown |
|
integer |
$desclength: |
the length of the description to be shown |
|
string |
$showstatistic: |
"hitcounter" for showing the hitcounter (views), "rating" for rating, "rating+hitcounter" for both. |
void printLatestAlbums(
[string $number = 5], [bool $showtitle = false], [bool $showdate = false], [bool $showdesc = false], [integer $desclength = 40], [string $showstatistic = '']
)
|
|
printLatestImages [line 449]
Prints the latest images by ID (the order zenphoto recognized the images on the filesystem)
Parameters:
|
string |
$number: |
the number of images to get |
|
string |
$albumfolder: |
folder of an specific album |
|
bool |
$showtitle: |
if the image title should be shown |
|
bool |
$showdate: |
if the image date should be shown |
|
bool |
$showdesc: |
if the image description should be shown |
|
integer |
$desclength: |
the length of the description to be shown |
|
string |
$showstatistic: |
"hitcounter" for showing the hitcounter (views), "rating" for rating, "rating+hitcounter" for both. |
void printLatestImages(
[string $number = 5], [string $albumfolder = ''], [bool $showtitle = false], [bool $showdate = false], [bool $showdesc = false], [integer $desclength = 40], [string $showstatistic = '']
)
|
|
printLatestImagesByDate [line 466]
Prints the latest images by date order (date taken order)
Parameters:
|
string |
$number: |
the number of images to get |
|
string |
$albumfolder: |
folder of an specific album |
|
bool |
$showtitle: |
if the image title should be shown |
|
bool |
$showdate: |
if the image date should be shown |
|
bool |
$showdesc: |
if the image description should be shown |
|
integer |
$desclength: |
the length of the description to be shown |
|
string |
$showstatistic: |
"hitcounter" for showing the hitcounter (views), "rating" for rating, "rating+hitcounter" for both. |
void printLatestImagesByDate(
[string $number = 5], [string $albumfolder = ''], [bool $showtitle = false], [bool $showdate = false], [bool $showdesc = false], [integer $desclength = 40], [string $showstatistic = '']
)
|
|
printLatestImagesByMtime [line 483]
Prints the latest images by mtime order (date uploaded order)
Parameters:
|
string |
$number: |
the number of images to get |
|
string |
$albumfolder: |
folder of an specific album |
|
bool |
$showtitle: |
if the image title should be shown |
|
bool |
$showdate: |
if the image date should be shown |
|
bool |
$showdesc: |
if the image description should be shown |
|
integer |
$desclength: |
the length of the description to be shown |
|
string |
$showstatistic: |
"hitcounter" for showing the hitcounter (views), "rating" for rating, "rating+hitcounter" for both. |
void printLatestImagesByMtime(
[string $number = 5], [string $albumfolder = ''], [bool $showtitle = false], [bool $showdate = false], [bool $showdesc = false], [integer $desclength = 40], [string $showstatistic = '']
)
|
|
printLatestUpdatedAlbums [line 259]
Prints the top voted albums
Parameters:
|
string |
$number: |
the number of albums to get |
|
bool |
$showtitle: |
if the album title should be shown |
|
bool |
$showdate: |
if the album date should be shown |
|
bool |
$showdesc: |
if the album description should be shown |
|
integer |
$desclength: |
the length of the description to be shown |
|
string |
$showstatistic: |
"hitcounter" for showing the hitcounter (views), "rating" for rating, "rating+hitcounter" for both. |
void printLatestUpdatedAlbums(
[string $number = 5], [bool $showtitle = false], [bool $showdate = false], [bool $showdesc = false], [integer $desclength = 40], [string $showstatistic = '']
)
|
|
printMostRatedAlbums [line 227]
Prints the most rated albums
Parameters:
|
string |
$number: |
the number of albums to get |
|
bool |
$showtitle: |
if the album title should be shown |
|
bool |
$showdate: |
if the album date should be shown |
|
bool |
$showdesc: |
if the album description should be shown |
|
integer |
$desclength: |
the length of the description to be shown |
|
string |
$showstatistic: |
"hitcounter" for showing the hitcounter (views), "rating" for rating, "rating+hitcounter" for both. |
void printMostRatedAlbums(
[string $number = 5], [bool $showtitle = false], [bool $showdate = false], [bool $showdesc = false], [integer $desclength = 40], [string $showstatistic = '']
)
|
|
printMostRatedImages [line 432]
Prints the n most rated images
Parameters:
|
int |
$number: |
The number if images desired |
|
string |
$albumfolder: |
folder of an specific album |
|
bool |
$showtitle: |
if the image title should be shown |
|
bool |
$showdate: |
if the image date should be shown |
|
bool |
$showdesc: |
if the image description should be shown |
|
integer |
$desclength: |
the length of the description to be shown |
|
string |
$showstatistic: |
"hitcounter" for showing the hitcounter (views), "rating" for rating, "rating+hitcounter" for both. |
void printMostRatedImages(
[int $number = 5], [string $albumfolder = ''], [bool $showtitle = false], [bool $showdate = false], [bool $showdesc = false], [integer $desclength = 40], [string $showstatistic = '']
)
|
|
printPopularAlbums [line 195]
Prints the most popular albums
Parameters:
|
string |
$number: |
the number of albums to get |
|
bool |
$showtitle: |
if the album title should be shown |
|
bool |
$showdate: |
if the album date should be shown |
|
bool |
$showdesc: |
if the album description should be shown |
|
integer |
$desclength: |
the length of the description to be shown |
|
string |
$showstatistic: |
"hitcounter" for showing the hitcounter (views), "rating" for rating, "rating+hitcounter" for both. |
void printPopularAlbums(
[string $number = 5], [bool $showtitle = false], [bool $showdate = false], [bool $showdesc = false], [integer $desclength = 40], [string $showstatistic = 'hitcounter']
)
|
|
printPopularImages [line 397]
Prints the most popular images
Parameters:
|
string |
$number: |
the number of images to get |
|
string |
$albumfolder: |
folder of an specific album |
|
bool |
$showtitle: |
if the image title should be shown |
|
bool |
$showdate: |
if the image date should be shown |
|
bool |
$showdesc: |
if the image description should be shown |
|
integer |
$desclength: |
the length of the description to be shown |
|
string |
$showstatistic: |
"hitcounter" for showing the hitcounter (views), "rating" for rating, "rating+hitcounter" for both. |
void printPopularImages(
[string $number = 5], [string $albumfolder = ''], [bool $showtitle = false], [bool $showdate = false], [bool $showdesc = false], [integer $desclength = 40], [string $showstatistic = '']
)
|
|
printTopRatedAlbums [line 243]
Prints the top voted albums
Parameters:
|
string |
$number: |
the number of albums to get |
|
bool |
$showtitle: |
if the album title should be shown |
|
bool |
$showdate: |
if the album date should be shown |
|
bool |
$showdesc: |
if the album description should be shown |
|
integer |
$desclength: |
the length of the description to be shown |
|
string |
$showstatistic: |
"hitcounter" for showing the hitcounter (views), "rating" for rating, "rating+hitcounter" for both. |
void printTopRatedAlbums(
[string $number = 5], [bool $showtitle = false], [bool $showdate = false], [bool $showdesc = false], [integer $desclength = 40], [string $showstatistic = '']
)
|
|
printTopRatedImages [line 414]
Prints the n top rated images
Parameters:
|
int |
$number: |
The number if images desired |
|
string |
$albumfolder: |
folder of an specific album |
|
bool |
$showtitle: |
if the image title should be shown |
|
bool |
$showdate: |
if the image date should be shown |
|
bool |
$showdesc: |
if the image description should be shown |
|
integer |
$desclength: |
the length of the description to be shown |
|
string |
$showstatistic: |
"hitcounter" for showing the hitcounter (views), "rating" for rating, "rating+hitcounter" for both. |
void printTopRatedImages(
[int $number = 5], [string $albumfolder = ""], [bool $showtitle = false], [bool $showdate = false], [bool $showdesc = false], [integer $desclength = 40], [string $showstatistic = '']
)
|
|
|
|