32 Commits

Author SHA1 Message Date
Ankit Agarwal
731c2712e7 MDL-50173 ratings: Use proper checks to ensure ratings are viewable.
Mainly to verify groups visibility this new callback has been created.

Note this was originally 3 commits but for amending purposes they have
been squashed.
2015-09-09 04:07:21 +02:00
David Monllao
81ce169dce Merge branch 'MDL-49346-master' of git://github.com/jleyva/moodle 2015-03-10 15:31:51 +08:00
Juan Leyva
9502a19c3c MDL-49346 ratings: ratingarea should be a required parameter 2015-03-06 11:34:21 +01:00
Juan Leyva
c73b8d85c5 MDL-49351 ratings: Correct check of viewallratings permission 2015-03-06 11:33:56 +01:00
Andrew Davis
d28a6a5f4b MDL-46446 core_rating: fixed coding style problems 2014-07-23 19:30:53 +08:00
Andrew Davis
94e40193a4 MDL-32649 rating: fixed the sorting in /rating/index.php 2012-06-04 09:13:26 +07:00
Andrew Davis
08f06b1c24 MDL-30955 rating: corrected /rating/index.php as it was determining the maximum rating incorrectly for custom scales 2012-04-10 12:01:52 +07:00
Jason Fowler
8c335cffc4 MDL-30990 - Docblock cleanup for Ratings API 2012-03-02 07:47:08 +08:00
Petr Skoda
aff24313be MDL-29401 introduce new frankenstyle PARAM types
New PARAM_COMPONENT, PARAM_AREA and PARAM_PLUGIN + fixing of hopefully all current incorrect parameter types. This should help with diagnosing of incorrectly named 3rd party plugins too.
2011-09-25 09:59:55 +02:00
Eloy Lafuente (stronk7)
f2e725930b MDL-27471 rating - whitespace cleanup 2011-05-25 16:54:51 +02:00
Sam Hemelryk
2b04c41c58 MDL-27471 Adding mandatory component & ratingarea to the ratings API + other fixes
* Added the component and ratingarea fields and implemented it throughout
  the rating API as mandatory fields
* Cleanup rating indexes
* Upgrade forum/data/glossary ratings
* Moved the logic in the render_rating method to methods of the rating object.
* Added new callback for checking ratingareas
* Cleaned comments here and there
* Mark the xxx_get_participants methods as deprecated
* Refactor rate_ajax and ratingsuser_can_view_aggregate methods
* Cleaned up rating/index.php to use html_table object and moved inline styles to CSS.
* Added missing properties of the rating object that were being set throughout the rating
  API.
2011-05-23 12:35:39 +02:00
Eloy Lafuente (stronk7)
29336fb13c Merge branch 'MDL-26461_change_rating_scale' of git://github.com/andyjdavis/moodle 2011-02-22 11:06:23 +01:00
Andrew Davis (andyjdavis)
aafa4f324a rating MDL-26461 fixed an off by 1 bug that made the safeguard against too high ratings not work 2011-02-21 10:48:38 +08:00
andyjdavis
7bbe971548 general MDL-26440 removed references to uid in SQL queries as its a reserved word in Oracle 2011-02-18 15:51:50 +08:00
Andrew Davis
d0c675f774 rating MDLSITE-1045 changed /rating/index.php page title to be more friendly 2010-10-11 08:39:19 +00:00
Andrew Davis
695719fa45 rating MDL-24558 added better handling for when there are no ratings submitted 2010-10-07 08:25:59 +00:00
Andrew Davis
07f05a04b1 rating MDL-23933 Removed a bunch of no longer used strings and moved rating strings into the rating lang file.
AMOS BEGIN
 MOV [couldnotdeleteratings,mod_forum],[couldnotdeleteratings,core_rating]
 MOV [aggregatenone,mod_forum],[aggregatenone,core_rating]
 MOV [aggregateavg,mod_forum],[aggregateavg,core_rating]
 MOV [aggregatecount,mod_forum],[aggregatecount,core_rating]
 MOV [aggregatemax,mod_forum],[aggregatemax,core_rating]
 MOV [aggregatemin,mod_forum],[aggregatemin,core_rating]
 MOV [aggregatesum,mod_forum],[aggregatesum,core_rating]
AMOS END
2010-09-17 06:32:46 +00:00
Petr Skoda
5d354ded1a standardized PHPDocs package info 2010-09-06 11:17:43 +00:00
Andrew Davis
c8e142dd3c rating MDL-23805 added set_context() call 2010-08-17 03:43:13 +00:00
Andrew Davis
63e87951e6 rating MDL-21657 updated version of ratings including forum and glossary integration 2010-04-22 05:15:23 +00:00
Andrew Davis
a8e85df64f rating MDL-21657 split the class rating into rating and rating_manager 2010-03-19 07:20:13 +00:00
Andrew Davis
b1721f670b rating MDL-21657 started making ratings API more like comments and split rate.php into rate.php and rate_ajax.php 2010-03-19 06:55:47 +00:00
Andrew Davis
bab7e00b10 rating MDL-21657 switched from putting permissions in constants to using literal strings 2010-03-18 08:59:10 +00:00
Andrew Davis
61b0070857 rating MDL-21657 updated aliasing and unaliasing of the fields returned by user_picture::fields 2010-03-18 08:17:21 +00:00
Andrew Davis
c538a23d9d rating MDL-21657 added aliasing and unaliasing of the fields returned by user_picture::fields 2010-03-18 08:12:13 +00:00
Andrew Davis
2d10c08576 rating MDL-21657 changed to make use use of user_picture::fields() 2010-03-18 04:08:52 +00:00
Andrew Davis
8b69c341c0 rating MDL-21657 more changes based on Petr's feedback 2010-03-18 03:47:12 +00:00
Andrew Davis
7ac928a749 rating MDL-21657 more changes based on Petr's feedback 2010-03-17 09:12:13 +00:00
Andrew Davis
9c1f9627d8 rating MDL-21657 renamed ratinglib.php to lib.php to bring /rating in line with /comment 2010-03-17 03:54:18 +00:00
Andrew Davis
f1f6a75524 rating MDL-21657 changes based on Petr's feedback 2010-03-17 03:39:54 +00:00
Andrew Davis
6c5fcef746 rating MDL-21657 changing from ratings (plural) to rating (singular) 2010-03-16 09:37:31 +00:00
Andrew Davis
a09aeee47b rating MDL-21657 first commit for rating library 2010-03-16 05:57:51 +00:00