Ankit Agarwal
9a5e297b4c
MDL-34470 course: Replace all instances of get_context_instance() with context_xxx::instance() in course/
2012-07-24 16:19:01 +08:00
Petr Skoda
c52551dc3c
MDL-8249 localise standard role names and descriptions if empty
2012-07-06 08:22:34 +02:00
sam marshall
ce4dfd2703
MDL-24419 (4): Add conditional availability support to sections; section cache
...
Credit: original version done by Kirill Astashov of NetSpot (netspot.com.au),
finished and tweaked by sam.
This change adds conditional availability support for sections analagous to
that already available for activities. (Backend, UI, backup/restore.)
In order that this feature does not reduce performance, section cacheing has
also been added using a new course 'sectioncache' field analagous to modinfo.
The new feature integrates with activity availability so that activities
inside sections which are not available are automatically not available
themselves (meaning it works to restrict access).
2012-05-14 11:19:25 +01:00
Tim Hunt
9665ecd275
MDL-19125 module restrictions: use a capability
...
1. This used to use a complex legacy system which was buggy.
2. It now relies on a new mod/...:addinstance capability for each module.
3. All the legacy code has been stripped out.
4. Old restriction data is upgraded by creating the necessary permission
overrides. Similarly, when old backups are restored, the old settings
are converted to be overrides.
5. The required addinstance capabilities will be added as a separate
commit.
6. There is a developer debug warning about modules that are missing the
addinstance capability, unless they are MOD_ARCHETYPE_SYSTEM mods.
2012-03-15 17:11:27 +00:00
Rajesh Taneja
dedb69a2a1
MDL-27896 editor - parent context will be respected by editor in case context is not created.
2011-08-12 11:33:21 +08:00
Rajesh Taneja
e9de1cf49c
MDL-27896 context - Fixed editor context to observe filter status
2011-08-12 11:33:21 +08:00
Petr Skoda
dba37691c5
MDL-23797 fixed some problems discovered by the new PAGE->context diag code
2010-08-16 19:11:50 +00:00
Petr Skoda
9eb7b1cb81
MDL-23502 improved coding style
2010-07-31 10:14:05 +00:00
Petr Skoda
eef400a460
MDL-23502 removed annoying redirect messages - it is obvious that the course was updated or created when there was no error; changing redirect after adding to new ajax UI; enrolment is not a good starting place for courses created by course creators - this role is design for creating of course for own use, not for others
2010-07-31 10:12:37 +00:00
aparup
7feebf6f6d
Administration MDL-23144
...
Course create/update/cancel now navigates back to where u came from (namely /course/index.php & /course/category.php).
(except when creating by default in Misc whereby you're sent to Misc where the course was created)
2010-07-16 07:10:49 +00:00
aparup
924ca8450f
ADministration MDL-23144 fixed course creation -> cancel button going to limbo. now goes back to course(cat) index page
2010-07-08 05:40:03 +00:00
Petr Skoda
64f93798d4
MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment
2010-07-03 13:37:13 +00:00
Rossiani Wijaya
377d7b82f6
MDL-20410 - remove set_focuscontrol (bulk commit)
2010-07-01 05:35:27 +00:00
Petr Skoda
df997f841f
MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
...
AMOS START
MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
MOV [enrolenddate,core],[enrolenddate,enrol_self]
CPY [welcometocourse,core],[welcometocourse,enrol_self]
CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
MOV [notenrollable,core],[notenrollable,core_enrol]
MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
MOV [coursemanager,core_admin],[coursecontact,core_admin]
MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
MOV [enrolme,core],[enrolme,core_enrol]
MOV [unenrol,core],[unenrol,core_enrol]
MOV [unenrolme,core],[unenrolme,core_enrol]
MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
MOV [enrolments,core],[enrolments,core_enrol]
MOV [enrolperiod,core],[enrolperiod,core_enrol]
MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00
Petr Skoda
4f0c2d0009
MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too
2010-03-31 07:41:31 +00:00
Sam Hemelryk
33c074206d
course-edit MDL-20204 Fixed recent regression get_list_of_themes returns array of themes now not strings
2010-01-28 07:00:16 +00:00
Petr Skoda
a685593466
MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions
2010-01-16 15:39:56 +00:00
Petr Skoda
191b267bcd
MDL-20790 more page layouts -see base theme for full list; also added new css body class for describing current layout; base layout is now default for beter BC; require_login() now sets 'incourse' layout automatically
2009-12-27 12:02:04 +00:00
Petr Skoda
78946b9bdb
MDL-20204 first batch of major theme changes, some regressions are still there, expect more changes and improvements soon; see tracker for details and list of subtasks
2009-12-16 18:00:58 +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
samhemelryk
fa040aacc6
questions MDL-19820 Added set_url calls
2009-09-16 08:19:22 +00:00
samhemelryk
91152a3518
navigation MDL-20216 Refactored add arguments
...
Moved $action argument from arg5 to arg2
2009-09-04 03:12:01 +00:00
samhemelryk
0a122046bc
course MDL-19794 Upgraded print_header and build_navigation calls to use PAGE and OUTPUT equivilants
2009-09-03 08:47:24 +00:00
nicolasconnault
d60c112435
MDL-19794 Converted all print_footer() calls
2009-08-06 14:10:33 +00:00
nicolasconnault
7c5286cd85
MDL-19794 Migrated calls to print_heading
2009-08-06 08:15:43 +00:00
tjhunt
d4a03c00ea
themes & blocks - MDL-19077 & MDL-19010 blocks are now printed by the theme
...
The code to print blocks in now in theme layout.php files. (Or in
moodle_core_renderer::handle_legacy_theme)
Code for printing blocks everywhere else has been stripped out.
(Total diffstat 1225 insertions, 2019 deletions)
The way the HTML for a block instance is generated has been cleaned
up a lot. Now, the block_instance generates a block_contents
object which gives a structured representation of the block,
and then $OUTPUT->block builds all the HTML from that.
How theme config.php files specify the layout template and block
regions by page general type has been changed to be even more flexible.
Further refinement for how the theme and block code gets initialised.
Ability for scrits to add 'pretend blocks' to the page. That is,
things that look like blocks, but are not normal block_instances.
(Like the add a new block UI.)
Things that are still broken:
* some pages in lesson, quiz and resource. I'm working on it.
* lots of developer debug notices pointing out things that
need to be updated.
2009-07-09 07:35:03 +00:00
tjhunt
93d4a373f9
blocklib: MDL-19010 always include blocklib in setup.php, stip includes elsewhere
2009-05-06 09:13:16 +00:00
tjhunt
1d693c8fd0
course settings: MDL-18595: Fix regression caused by switching the course settings form to use the new date selector.
...
The bad commit was http://cvs.moodle.org/moodle/course/edit_form.php?r1=1.65&r2=1.66
Sorry everyone who was inconvenienced by this.
2009-03-19 03:14:11 +00:00
skodak
2942a5cd34
MDL-9983, MDL-13998 core events related cleanup; merged from MOODLE_19_STABLE
2008-07-06 17:57:06 +00:00
skodak
294ce9870f
MDL-15189 magic quotes finally removed
2008-06-09 16:53:30 +00:00
skodak
c3df090199
MDL-14679 datalib conversion completed
2008-05-30 16:47:21 +00:00
dongsheng
ba6018a902
"MDL-14129, fix print_error call under course/, see tracker"
2008-05-07 06:02:51 +00:00
dongsheng
5a2a53316f
MDL-14129, remove all the other error() call
2008-04-04 02:54:20 +00:00
poltawski
b60fd03245
MDL-12409 - stop access to editing 'site course' with course edit form.
...
Merged from MOODLE_19_STABLE
2007-12-03 12:23:24 +00:00
martinlanghoff
c633af7a5a
course/edit: mark the course contextpath as dirty to force a reload
...
Combined with the path creation in create_context() we can now create
a course, enter and edit it immediately. Amazing.
Like - 21st century technology.
2007-09-19 07:13:20 +00:00
nicolasconnault
73c24ef80b
MDL-10870 All files updated to new build_navigation() method.
2007-08-16 15:01:25 +00:00
moodler
76655d6ff1
Make course themes work on course settings page MDL-10833
2007-08-13 13:35:29 +00:00
toyomoyo
e513826187
MDL-9983, adding triggers for certain events, no handler implemented
2007-07-09 06:43:33 +00:00
skodak
1898ccac4c
MDL-9929 we need some other name for password field in course edit page
2007-06-10 20:43:43 +00:00
moodler
bfefa87eab
Moved create_course and update_course into course/lib.php and cleaned them up to be more useful in general MDL-9015
2007-03-23 02:29:05 +00:00
toyomoyo
0150c561c5
fix for MDL-8966, customizable role names
2007-03-22 08:11:30 +00:00
skodak
5e992f564b
MDL-8867 Add setting to define role that is assigned to creators in new courses
...
MDL-8868 Set only minimal permissions for creator role
+ improved accesslib to handle changes of context levels in capability definitions
merged from MOODLE_18_STABLE
2007-03-14 21:42:38 +00:00
moodler
6ba65fa08d
Merged Nicolas' changes from MDL-8582 into HEAD.
2007-02-28 06:25:22 +00:00
vyshane
2585a68d54
Merged from 1.8.
2007-02-16 08:46:55 +00:00
skodak
beac4717de
MDL-8166 rename in/out methods in formslib - HQ consensus
2007-01-12 18:52:09 +00:00
jamiesensei
ccbef0e2b7
moved set_defaults to main script out of definition method.
2007-01-12 05:07:22 +00:00
jamiesensei
a23f0aaf95
* Added setAdvanced functionality see http://docs.moodle.org/en/Development:lib/formslib.php_setAdvanced
...
* Added MoodleQuickForm method closeHeaderBefore($elementName); http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#Use_Fieldsets_to_group_Form_Elements
* Added moodleform method add_action_buttons(); see http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#add_action_buttons.28.24cancel_.3D_true.2C_.24revert_.3D_true.2C_.24submitlabel.3Dnull.29.3B
* is_cancelled method added to moodleform http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page
* added hidden labels to elements within groups such as the date_selector select boxes and other elements in 'groups'
* quiz/mod.html migrated to formslib
* glossary/edit.html migrated to formslib
* extended registerNoSubmitButton() functionality to automatically add js to onclick to bypass client side js input validation.
* added no_submit_button_pressed() function that can be used in a similar way to is_cancelled() as a test in the main script to see if some button in the page has been pressed that is a submit button that is used for some dynamic functionality within the form and not to submit the data for the whole form.
* added new condition for disabledIf which allows to disable another form element if no options are selected from within a select element.
* added default 'action' for moodleform - strip_querystring(qualified_me()) http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page
2006-12-19 07:03:08 +00:00
skodak
396254981f
coding style fixes MDL-6949
2006-11-09 22:08:30 +00:00
skodak
2378265e51
course/edit.php now uses new forms lib, the old one is gone; please report any problems in MDL-6949
2006-11-09 21:29:31 +00:00