Commit graph

102 commits

Author SHA1 Message Date
Mark Nelson
022745acd2 MDL-18375 calendar: implemented the usage of the recently introduced automatic class loading 2013-09-05 18:32:16 +08:00
Mark Nelson
84423bd9e5 MDL-18375 calendar: refactored the datetime user field so that it now uses the calendar type system 2013-09-05 18:32:15 +08:00
Mark Nelson
2f00e1b245 MDL-18375 calendar: huge refactor of the initial patch
1) Moved the calendar types location to a sub-folder in the calendar directory.
2) Removed/moved language strings.
3) Removed calendar types that should be downloaded as plugins.
4) Removed a Non-English language pack for the Gregorian calendar type that
should be downloaded separately.
5) Removed custom files responsible for checking for updates and uninstalling
calendar types, which should be done by core.
6) Removed JS from the calendar_month block as there is no non-JS alternative
provided and the JS written does not make use of the YUI library to ensure
multiple browser support.
7) Removed code from the base class responsible for creating timestamps that
are saved in the DB.
8) Added PHPDocs.

Note: In the original patch we are editing core functions responsible for saving
time in the database in the calendar base class. This is very dangerous, we do
not want to touch these functions as it could cause a complete fubar of the
database. There are places we are forcing the use of the gregorian calendar as
we are passing dates generated by the PHP date function, where as sometimes
we pass dates from usergetdate (which was being overwritten to return the
date specific to the calendar). We can not expect third party modules to
change the calendar type depending on the format they pass to these functions.
2013-09-05 18:30:05 +08:00
Shamim Rezaie
6dd59aabfa MDL-18375 calendar: added multiple calendar support
Conflicts:

	course/edit_form.php
	lib/db/install.xml
	lib/form/dateselector.php
	lib/form/datetimeselector.php
	lib/setup.php
2013-09-05 18:30:05 +08:00
Helen Foster
86698a4c72 MDL-41568 Merge English strings from the en_fix language pack 2013-09-03 12:31:35 +02:00
Eloy Lafuente (stronk7)
cedb0aab5a MDL-39434 Bump all versions near 2.5 release 2013-05-01 18:03:29 +02:00
Chris Wharton
7605dba31b MDl-38494 user: Fix uploaded datetime profile fields 2013-03-25 15:48:04 +08:00
Eloy Lafuente (stronk7)
663dbbc2e6 MDL-36933 Bump everything to 2012112900
(versions, requires and dependencies)
2012-11-30 03:30:09 +01:00
Tomasz Muras
c7ece2b1ef MDL-32092 Remove dead code from profile_field_textarea 2012-10-08 13:53:40 +08:00
Frederic Massart
4373103084 MDL-34460 Librairies: Replaced deprecated get_context_instance() 2012-07-26 13:23:28 +08:00
Rajesh Taneja
071e68f93e MDL-32945 libraries: Replaced deprecated PARAM_MULTILANG with PARAM_TEXT 2012-07-19 15:44:40 +08:00
Eloy Lafuente (stronk7)
c5e783e512 MDL-33794 version.php: Bump all versions, requires and dependencies to 2012061700 2012-06-18 02:37:00 +02:00
Rajesh Taneja
c106a9bff0 MDL-27562 formslib: applydst should be always true, hence option removed from dateselector and datetimeselector form elements 2012-05-07 15:23:45 +08:00
Petr Skoda
c990e4bfcb MDL-32405 fix PHP4isms and other E_STRICT issues in custom profile fields 2012-04-15 17:15:50 +02:00
Rajesh Taneja
1b4d2d56d9 MDL-31654 users: Added check for custom profile fields, if wrong data is passed then user will not be able to proceed 2012-03-23 10:13:37 +08:00
Rajesh Taneja
bd8dc9ba0a MDL-31654 users: removed hardcoding and added docblock on top of tim's patch 2012-03-23 10:13:37 +08:00
Sam Hemelryk
9c6b40c614 Merge branch 'MDL-30518' of git://github.com/mackensen/moodle 2011-12-08 16:05:26 +13:00
Charles Fulton
59c1a98c05 MDL-30518 get_context_instance takes one parameter at the SYSTEM level 2011-11-30 05:47:50 -08:00
Eloy Lafuente (stronk7)
7927af450c MDL-30007 standardise user profile field version files 2011-11-30 02:45:21 +01:00
Sam Hemelryk
3cf8629554 user-profile-field-datetime MDL-24806 Fixed typo 2010-11-11 05:04:07 +00:00
Petr Skoda
68f94e2418 MDL-24806 new time/date profile field
Credit goes to Mark Nelson - Pukunui Technology
2010-11-11 00:34:44 +00:00
Sam Hemelryk
367a75fae4 themes lib MDL-24895 Multiple fixes to better handle overflow.
Major tasks undertaken in this patch:
* New format_text argument, overflowdiv.
* New page layout Report.
* Review of all format_text calls.
* Added support for the report layout to all themes.
* Changed forum post display from tables to divs.
2010-11-05 02:53:47 +00:00
Petr Skoda
bf718f50ac MDL-24321 switching to stdClass in /user/ 2010-09-21 08:27:29 +00:00
Petr Skoda
a8ff9488fd phpdocs and var initialization 2010-09-17 20:05:40 +00:00
Petr Skoda
93de0ac293 MDL-23184 using PARAM_NOTAGS instead of general cleaning for fields that are not supposed to have tags 2010-09-02 18:25:30 +00:00
David Mudrak
a68ae24547 MDL-21695 Fixed the caller of profilefieldlink help 2010-06-28 14:38:16 +00:00
Petr Skoda
859b00d0cc MDL-22061 converting profile fields to real plugins with lang packs
AMOS START
 MOV [profilefieldtypecheckbox,core_admin],[pluginname,profilefield_checkbox]
 MOV [profilefieldtypemenu,core_admin],[pluginname,profilefield_menu]
 MOV [profilefieldtypetext,core_admin],[pluginname,profilefield_text]
 MOV [profilefieldtypetextarea,core_admin],[pluginname,profilefield_textarea]
AMOS END
2010-04-11 21:02:06 +00:00
Petr Skoda
aa6c1ced0a MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-04 08:11:02 +00:00
Sam Hemelryk
8bdc9cacad files MDL-20601 Conversion of many of the uses of print_textarea, and the mforms htmleditor to the new editor
Please forgive me if I have missed converting any output statements. If you do find an output statement that is not formatting correctly please refere to the table I added to this bug in regards to how it should be formatted.
2009-11-04 06:14:06 +00:00
skodak
4d3e28a06c MDL-18265 fixed regression in menu field - discovered and patched by Vlas Voloshin, thanks!; merged from MOODLE_19_STABLE 2009-03-15 13:44:28 +00:00
ikawhero
410fc5a24d MDL-17791 Can make a link from user data when adding a new custom user
profile text field
2009-01-06 07:31:26 +00:00
jamiesensei
d004c4adcd MDL-16242 "'Required' does nothing for select fields in customisable user profiles" added an extra option 'Choose...' which is the default if no other default is specified. If the user leaves the select field set to 'Choose...' then the required rule fails and the form does not submit. 2008-08-28 06:44:49 +00:00
jerome
b587e914f7 MDL-16099: database migration on user/profil/field/checkbox/field.class.php 2008-08-18 07:25:09 +00:00
moodler
34c688c959 MDL-14299 Merged small credit fix 2008-07-15 04:30:37 +00:00
ikawhero
8750134a46 Merged from stable. Change language string file. 2008-07-15 04:03:33 +00:00
ikawhero
60d922d5f1 MDL-14299 New checkbox profile field type.
Credit to Brian King.
2008-07-15 03:31:32 +00:00
scyrma
2803993c02 Let the admin choose if a textfield is to be shown as plain text or as a password (with '*' in place of normal text) 2007-12-21 08:19:14 +00:00
skodak
a78890d593 MDL-12133 validate() method tidying up; merged from MOODLE_19_STABLE 2007-11-23 22:15:07 +00:00
ikawhero
91cddbc454 Only include data from field types that are "small" 2007-10-08 08:10:45 +00:00
ikawhero
86e95dfa9c New textarea profile field type 2007-04-28 03:07:43 +00:00
ikawhero
c3af90961c Merged changes from stable.
Fixed typo.
Made constructor variables optional to reflect parent class
2007-04-19 07:42:40 +00:00
ikawhero
334415e93f Merging changes from 1.8
Display custom profile fields in profile page - see MDL-9285
Menu type stores the value rather than the index - see comments on MDL-9285
General tidy up and renaming of funtions in field class.
2007-04-16 02:49:33 +00:00
nicolasconnault
008bc40114 Added rows and cols to menu options textarea, fixing xhtml break. 2007-04-04 04:39:23 +00:00
nicolasconnault
7d4db46aa8 MDL-9136: Added a $selected attribute to the profile_field_menu object, which gets set during initialisation. 2007-04-04 04:09:47 +00:00
skodak
a5d3b07224 MDL-8096 - some more fixes and minor refactoring in custom profile fields 2007-01-26 13:49:32 +00:00
skodak
1bf65e5880 MDL-8096 - some more fixes for custom profile fields 2007-01-26 13:33:56 +00:00
skodak
bb6d3d3454 MDL-8096 - refactored and cleanedup custom profiles, user edit form fixes
TODO: fix comments and docs
2007-01-26 13:11:06 +00:00
skodak
478caed8e1 MDL-8096 - fixed use of formslib in custom profile field gui 2007-01-25 19:36:47 +00:00
ikawhero
253625c5e3 Tidying up the interface.
Fixed default data bug in menu type.
2007-01-12 12:58:15 +00:00
ikawhero
8c33bc76d0 Language string changes 2007-01-12 06:03:49 +00:00