Changeset 2811
- Timestamp:
- 07/18/08 05:46:57 (3 months ago)
- Files:
-
- branches/release-41/lib/MT/Scorable.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-41/lib/MT/Scorable.pm
r1174 r2811 317 317 =head1 METHODS 318 318 319 =head2 get_score($ plugin_key, $user)319 =head2 get_score($namespace, $user) 320 320 321 321 Return the score of the object, scored by the user specified. … … 323 323 specified by a user to an object. 324 324 325 =head2 set_score($ plugin_key, $user, $score, $overwrite)325 =head2 set_score($namespace, $user, $score, $overwrite) 326 326 327 327 Set specified score to the object by the user. If $overwrite argument 328 328 is false and the user has already scored the object before, error results. 329 329 330 =head2 score_for($ plugin_key)330 =head2 score_for($namespace) 331 331 332 332 Return the total score of the object. 333 333 334 =head2 vote_for($ plugin_key)334 =head2 vote_for($namespace) 335 335 336 336 Return how many users scored to the object. 337 337 338 =head2 score_high($ plugin_key)338 =head2 score_high($namespace) 339 339 340 340 Return the highest score to the object. 341 341 342 =head2 score_low($ plugin_key)342 =head2 score_low($namespace) 343 343 344 344 Return the lowest score to the object. 345 345 346 =head2 score_avg($ plugin_key)346 =head2 score_avg($namespace) 347 347 348 348 Return the average score of the object. 349 349 350 =head2 rank_for($ plugin_key, $max)350 =head2 rank_for($namespace, $max, $dbd_args) 351 351 352 352 Return the rank of the object based on its score among other objects 353 353 of the same type. The smaller the number is, the higher the object's rank is. 354 354 355 $max is the maximum number of rank. 356 357 You can pass "join" argument to $dbd_args parameter to narrow 358 the data loaded from the database that is loaded from the database. 359 355 360 =head1 AUTHOR & COPYRIGHT 356 361
