190 Commits

Author SHA1 Message Date
Aparup Banerjee
de7a570cd5 MDL-34650 typo correction 2012-07-31 13:24:00 +08:00
Aparup Banerjee
87c12fec13 Merge branch 'MDL-34650' of git://github.com/rwijaya/moodle 2012-07-31 13:19:47 +08:00
Rossiani Wijaya
ecc5cc31ae MDL-34650 - accessibility compliance: Add <label> for form input text and select tag 2012-07-31 12:07:16 +08:00
Adrian Greeve
b0c6dc1cac MDL-34465 - lib - Replacing get_context_instance with context_XXXX::instance (group 8) 2012-07-27 10:10:46 +08:00
Frederic Massart
4954d6ed2c MDL-33814 Output renderers: table cell objects are only created when needed 2012-06-19 11:59:03 +08:00
Petr Skoda
33d9f44bc6 MDL-18763 add 512x512px user avatar support 2012-05-19 18:47:23 +02:00
Petr Skoda
4d254790c4 MDL-32628 add revision for user avatar images
This should finally resolve all avatar caching issues and should also help with performance.
2012-04-30 23:36:47 +02:00
Petr Skoda
faa328c385 MDL-32628 fix user_picture performance 2012-04-27 13:56:08 +02:00
Marina Glancy
b2cb00c2e9 MDL-31789: Allowing context object to be passed to JS using json_encode()
Classes with magic properties such as context do not pass through json_encode().
The solution is to implement iterator in such classes and convert what we
feed to json_encode to array using 'foreach' before we pass it to json_encode():
- class context implements IteratorAggregate
- added function convert_to_array() that converts anything to array
- before calling json_encode we convert the argument to array
2012-03-30 08:27:53 +08:00
Sam Hemelryk
f8129210d2 MDL-30979 output: Further changes are validation 2012-02-17 14:53:11 +13:00
Sam Hemelryk
3d3fae7259 MDL-30979 output: Changes after peer-review 2012-02-17 14:53:10 +13:00
Sam Hemelryk
76be40ccf9 MDL-30979 output: Adjustments to match recent changes in coding style doc 2012-02-17 14:53:10 +13:00
Sam Hemelryk
9678c7b845 MDL-30979 output: Fixed up phpdocs for output components code 2012-02-17 14:53:10 +13:00
Marina Glancy
0387e003ad MDL-28352: Fixed bug in html_writer::select_time causing not autoselecting month 2012-01-20 16:04:59 +08:00
Eloy Lafuente
90911c4ff9 MDL-29844 Administration: Added new config for users to login for viewing profile image 2012-01-03 11:53:49 +08:00
Petr Skoda
33dca15616 MDL-30613 use standard https checks 2011-12-09 21:28:04 +01:00
Petr Skoda
03636668d4 MDL-30457 do not show pictures of deleted users
Since 2.2 deleted users do not have contexts.
2011-11-26 08:42:36 +01:00
Sam Hemelryk
4125bdc139 MDL-21676 user: Implemented support for Gravatar profile pictures
Big thanks to the developers who put effort into this improvement:
* Jonathan Robson <jonathan.robson@remote-learner.net>
* Jonathan Harker <jonathan@catalyst.net.nz>
2011-09-20 12:41:48 +02:00
Petr Skoda
2c479c8fe6 MDL-29257 use counter for unique element ids 2011-09-10 12:02:51 +02:00
Sam Hemelryk
871a3ec5fb MDL-28043 user Fixed context hack in pluginfile for user pics leading to init of page, theme and output for redirect 2011-09-06 11:29:05 +12:00
Sam Hemelryk
7749e187cc MDL-28596 course Improved and modernised the production of module editing icons and added support for renderable content when rendering action_link components 2011-08-25 18:02:35 +12:00
Sam Hemelryk
c430467ca8 Merge branch 'MDL-28195' of git://github.com/timhunt/moodle 2011-07-11 15:02:03 +08:00
David Mudrak
4564d58f9e MDL-28168 Multi-language support for custom_menu reimplemented
This is a reimplementation of the multi-language support for the
custom_menu class. The menu items now accept the forth optional
parameter with the explicit list of languages the item is valid for. If
no languages are listed, the item is valid for any language. The caller
of the custom_menu constructor must provide the user's current language
or null if the multi-language should not be supported (all items are
valid for any language then, regardless the definition).

See the attached unit tests for the examples of usage.
2011-07-07 11:30:04 +02:00
David Mudrak
155fffe6a4 MDL-28168 Improved custom_menu constructor
This improves custom_menu constructor by dropping support for useless
$text parameter and replacing it with the menu definition. This makes
custom_menu instance independent on the place where the menu is defined
($CFG->custommenuitems) and can be unit-tested. Also, multiple instances
of custom_menu can be instantiated now which can be interesting in the
future.
2011-07-07 11:30:03 +02:00
David Mudrak
153a13226e MDL-28168 Revert "MDL-27073 Support multi-language content in custom menu"
This reverts commit 87e0230d0a0f5993111e81e01a9f62713595136a.
2011-07-07 11:30:03 +02:00
Tim Hunt
8f78cd5abc MDL-28195 confirm_action should allow the button labels to be customised 2011-07-06 14:47:30 +01:00
David Mudrak
87e0230d0a MDL-27073 Support multi-language content in custom menu 2011-06-17 17:08:33 +02:00
Eloy Lafuente (stronk7)
f50a61fb47 MDL-26167 lib/form: minor coding tweaks 2011-04-18 11:42:27 +02:00
Aaron Wells
4b72f9eb78 MDL-26167 lib/form: Altering Javascript so that "disabledIf" will disable the "Choose" button for a filepicker 2011-04-15 09:59:46 +12:00
Sam Hemelryk
c4592a2ac0 Merge branch 'MDL-25971' of git://github.com/timhunt/moodle 2011-01-17 15:12:18 +08:00
Tim Hunt
1a09fa6dfa html_writer MDL-25971 Support disabled => boolean, as well as disabled => disabled in html_writer::select. 2011-01-13 19:28:54 +00:00
David Mudrak
9ecbf8018f MDL-25935 user_picture::unalias() now handles null values correctly 2011-01-11 00:27:42 +01:00
David Mudrak
5c0d03ea1c MDL-25886 method to convert aliased fields returned by user_picture::fields() back to unaliased form
The new public static method user_picture::unalias() picks the user
picture fields from the given record and maps the properties back to
unaliased form so that the result can be rendered.
Also fixes a forgotten bug in previous commit and adds a unit test for
both aliasing and unaliasing.
2011-01-07 14:05:25 +01:00
David Mudrak
9958e561d8 MDL-25886 allow user_picture::fields() to be used multiple times within a single query
When user table is joined twice or more within a single query, it is
important to be able to provide aliases to all returned files. This
patch adds optional parameter that, if provided, is used as a prefix
for columns aliases. Does not apply to the 'id' column, use $idalias for
that.
2011-01-07 02:12:43 +01:00
Sam Hemelryk
57bedaeeea output-custommenu MDL-25447 Fixed up the processing of the custom menu removing the hard-coded single step down 2010-12-02 06:11:27 +00:00
Sam Marshall
15e48a1a49 Forum MDL-25170 Discussion move feature should have button so you don't do it by accident (again) 2010-11-15 10:41:26 +00:00
David Mudrak
b9fadae72d MDL-24507 support for the TinyMCE moodleemoticon plugin 2010-10-27 18:12:26 +00:00
jerome mouneyrac
ba5c144c0b image gallery MDL-24773 remove YUI 3 external lightbox module 2010-10-25 06:00:14 +00:00
David Mudrak
d63c507370 MDL-24777 new renderable component pix_emoticon 2010-10-23 18:39:23 +00:00
Sam Hemelryk
f3827323e1 output MDLSITE-1070 Added set methods to custom_menu class as properties are protected 2010-10-12 01:22:15 +00:00
David Mudrak
81e62b6fd5 MDL-12192 temporarily disabled support for colonized labels
The code must be fixed so that the colon is not displayed when the label
is hidden by accessibility CSS.
2010-09-24 11:19:57 +00:00
Petr Skoda
e839dce138 js_writer is supposed to have static methods only 2010-09-18 13:34:31 +00:00
Andrew Davis
5174f3c5c4 gradebook MDL-23750 category and item page had extra cells due to partial refactoring 2010-08-11 06:54:40 +00:00
Sam Hemelryk
a26f25ae65 custommenu MDL-23707 Fixed trim issue with custom menu item URLs 2010-08-11 06:02:21 +00:00
David Mudrak
6f7b89e212 NOMDL Fixed extra dot generated by user_picture::fields() if both idalias and table prefix are used 2010-07-26 21:42:28 +00:00
Petr Skoda
78bfb562a0 MDL-21249 improved php docs and adding direct access prevention in core libs 2010-07-25 13:35:05 +00:00
Dongsheng Cai
98e7ae6388 "MDL-23434, fixed accepted_types for filepicker" 2010-07-21 05:17:05 +00:00
Dongsheng Cai
be85f7ab94 "MDL-23307, server file plugin display current course files by default" 2010-07-19 17:44:23 +00:00
Dongsheng Cai
ee9a49628d MDL-14589, fixed filepath 2010-07-12 09:01:12 +00:00
Petr Skoda
50a8bd6c1d MDL-14589 file api cleanup 2010-07-11 13:30:33 +00:00