hitcounter.php
Provides automatic hitcounter counting for Zenphoto objects
Tags
Table of Contents
Classes
- hitcounter
- Plugin option handling class
Constants
- OFFSET_PATH = 3
Functions
- getHitcounter() : string
- returns the hitcounter for the current page or for the object passed
- getTotalHitcounter() : int
- Gets the total hitcounter sum of one or several items
Constants
OFFSET_PATH
public
mixed
OFFSET_PATH
= 3
Functions
getHitcounter()
returns the hitcounter for the current page or for the object passed
getHitcounter([object $obj = NULL ]) : string
Parameters
- $obj : object = NULL
-
the album or page object for which the hitcount is desired
Return values
stringgetTotalHitcounter()
Gets the total hitcounter sum of one or several items
getTotalHitcounter([array<string|int, mixed> $items = array() ]) : int
Parameters
- $items : array<string|int, mixed> = array()
-
an array with one or more item table names, e.g. array('albums', 'images', 'news', 'news_categories', 'pages')