|
eZ Publish
[trunk]
|
Inheritance diagram for eZViewCounter:
Collaboration diagram for eZViewCounter:Public Member Functions | |
| eZViewCounter ($row) | |
| increase ($count=1) | |
| Increase the counter. | |
Static Public Member Functions | |
| static | clear ($node_id) |
| static | create ($node_id) |
| static | definition () |
| Returns the definition for the object, the default implementation is to return an empty array. | |
| static | fetch ($node_id, $asObject=true) |
| static | fetchTopList ($classID=false, $sectionID=false, $offset=false, $limit=false) |
| static | removeCounter ($node_id) |
Public Attributes | |
| $Count | |
| $NodeID | |
Definition at line 11 of file ezviewcounter.php.
| static eZViewCounter::clear | ( | $ | node_id | ) | [static] |
Definition at line 60 of file ezviewcounter.php.
| static eZViewCounter::create | ( | $ | node_id | ) | [static] |
Definition at line 39 of file ezviewcounter.php.
| static eZViewCounter::definition | ( | ) | [static] |
Returns the definition for the object, the default implementation is to return an empty array.
It's upto each inheriting class to return a proper definition array.
The definition array is an associative array consists of these keys:
Example: public static function definition() { return array( "fields" => array( "id" => "ID", "version" => "Version", "name" => "Name" ), "keys" => array( "id", "version" ), "function_attributes" => array( "current" => "currentVersion", "class_name" => "className" ), "increment_key" => "id", "class_name" => "eZContentClass", "sort" => array( "id" => "asc" ), "name" => "ezcontentclass" ); }
Reimplemented from eZPersistentObject.
Definition at line 18 of file ezviewcounter.php.
Referenced by fetch(), fetchTopList(), and removeCounter().
| eZViewCounter::eZViewCounter | ( | $ | row | ) |
Definition at line 13 of file ezviewcounter.php.
Referenced by create().
| static eZViewCounter::fetch | ( | $ | node_id, |
| $ | asObject = true |
||
| ) | [static] |
Definition at line 88 of file ezviewcounter.php.
Referenced by clear().
| static eZViewCounter::fetchTopList | ( | $ | classID = false, |
| $ | sectionID = false, |
||
| $ | offset = false, |
||
| $ | limit = false |
||
| ) | [static] |
Definition at line 96 of file ezviewcounter.php.
Referenced by eZContentFunctionCollection\fetchMostViewedTopList().
| eZViewCounter::increase | ( | $ | count = 1 | ) |
Increase the counter.
| int | $count | Number of times to increase the counter, by default: 1. |
Definition at line 75 of file ezviewcounter.php.
| static eZViewCounter::removeCounter | ( | $ | node_id | ) | [static] |
Definition at line 50 of file ezviewcounter.php.
Referenced by eZContentObjectTreeNode\removeThis().
| eZViewCounter::$Count |
Definition at line 148 of file ezviewcounter.php.
| eZViewCounter::$NodeID |
Definition at line 147 of file ezviewcounter.php.