0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
7.0-0
/
standard
/
htdocs
/
lib
/
prefs
/
[
Home
]
File: rating.php
<?php // (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: rating.php 33195 2011-03-02 17:43:40Z changi67 $ function prefs_rating_list() { return array( 'rating_advanced' => array( 'name' => tra('Advanced Rating'), 'description' => tra('Rating system allowing for options and calculation method to be configured.'), 'type' => 'flag', 'help' => 'Advanced+Rating', ), 'rating_recalculation' => array( 'name' => tra('Rating recalculation mode'), 'description' => tra('Determines when and how rating aggregates are recalculated. Depending on the site load, some options may be preferred to others. On large volume sites, it should be done as a cron job. On vote recalculation may be inaccurate if rating calculation depends time.'), 'type' => 'list', 'options' => array( 'vote' => tra('Recalculate on vote'), 'randomload' => tra('Randomly recalculate oldest ratings (on load)'), 'randomvote' => tra('Randomly recalculate oldest ratings (on vote)'), 'period' => tra('Cron job (must be set manually)'), ), ), 'rating_recalculation_odd' => array( 'name' => tra('Recalculation odds (1 in X)'), 'description' => tra('Dice roll performed on every request. When successful, will recalculate a certain number of votes.'), 'type' => 'text', 'size' => 5, 'filter' => 'digits', ), 'rating_recalculation_count' => array( 'name' => tra('Recalculation count'), 'description' => tra('How many ratings should be recalculated when odds strike.'), 'type' => 'text', 'size' => 5, 'filter' => 'digits', ), ); }