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