Weblancet
Simplicity
We designed WebLancet to be as easy as possible to use. More
Scalability
WebLancet is designed to be scalable and extendable beyond the limits of imagination. More
Open source
WebLancet meets demand best as it is driven by community. More
Statistics + voting module
Statistics + voting module
2009 10 02 00:00:01

Statistics
To start logging visits for certain type of elements, just add the value to the configuration table:

Key:Stat,ComponentType:=1

or Key:ComponentTypes,ComponentType:Stat=,Arrays,Of,Component,Types,

To extract statistics results for component You can just call IModel->getVisits()
It will return visits count for current IModel.

Votings


To add a vote to some custom component, just call such a request:

               
                   
                   
                   
                   
                   
                   
               
Yum must have such configuration values fore each voting type:

EstimateLowerLimit, EstimateUpperLimit



To make the system automaticaklly vote for the owner of the object, add following variable:
key=AutoVoteForOwner,componentType=UserPhoto or other class

To extract contents just call IModel->getVoteResults()

Result: array with values:
            Count
            Avg
            Sum