592 Commits

Author SHA1 Message Date
David Mudrak
1ed4730901 MDL-21558 adding local plugins management page into the admin tree
The new admin external page admin/localplugins.php provides a list of
installed local plugins with a possibility to remove it.
2010-02-08 16:03:37 +00:00
jerome mouneyrac
4b4b53a74e webservice MDL-20803 add a link to the web service documentation on the 'enable documentation' setting option description. 2010-01-29 07:42:48 +00:00
jerome mouneyrac
220e5a767a webservice MDL-21463 trivial change of test client title 2010-01-29 02:57:51 +00:00
jerome mouneyrac
75537cbfee webservice MDL-21463 add our web service test client into the admin tree development section 2010-01-29 02:40:42 +00:00
Penny Leach
de260e0f7b mnet MDL-21261 large overhaul. This commit changes:
- The way that mnet rpc functions are registered.  Plugins must now
  create db/mnet.php which is an array, similar to services.php.  This
  *replaces* the old mnet_publishes() functions.  version.php must be
  bumped to trigger this.

- More information about each rpc-available function is stored in the
  database, including the class it belongs to, the file it is found in,
  and whether or not it is static.  Methods that are not static must be
  in a class with a constructor that takes no arguments (this can easily
  be achieved with a small wrapper if necessary)

- The xmlrpc dispatcher has been rewritten to remove all the
  dependencies on hardcoded information about auth,mnet,portfolio and
  repository, and just use the information in the database.

- The old hardcoded hidden mnet/testclient.php has been moved to the
  Admin menu under "Development" and rewritten.

- The xmlrpc introspection method profiling is now using php and zend
  reflection - which is a lot nicer than the old way, which was using a
  php-based php parser.  This fixes some inconsistent handling of
  methods without arguments that were advertising their return value as
  the only method parameter.  While this is a *fix*, it breaks BC
  slightly - the old 1.9 broken mnet/testclient.php will now not work
  properly with 2.0

- Dangerous mode is still supported, but old mod/*/rpclib.php is
  now unsupported, due to the fact that any plugin can export mnet
  functions with db/mnet.php.  This is a slight BC break.

Still TODO:

- TEST TEST TEST
- Document the two small BC breaks in release notes
- Document the contract for db/mnet.php
2010-01-28 05:25:50 +00:00
Rossiani Wijaya
8fed14f4d8 MDL-21440 - replacing hardcoded string with language string. 2010-01-28 02:12:30 +00:00
jerome mouneyrac
3e6161fb1c webservice MDL-21351 add an overview page to facilitate the web service administration 2010-01-22 02:04:12 +00:00
jerome mouneyrac
3f77607874 administration MDL-21351 revert changes 2010-01-20 10:16:41 +00:00
jerome mouneyrac
8399c714d7 webservice MDL-21351 remove Save Changes button from token/service/protocol page, relabel some Save Changes button into more explicit label, add help text to service page 2010-01-20 10:01:03 +00:00
Sam Hemelryk
d2c394f3c3 javascript-dock MDL-21329 Added $CFG->allowblockstodock(true by default) and $THEME->enable_dock (false by default)
Also moved blocks/blocks.js to javascript-static,js so there is one less file to load
2010-01-14 06:56:12 +00:00
jerome mouneyrac
15e417fe1f webservice MDL-20805 added token creation page 2010-01-11 08:23:39 +00:00
jerome mouneyrac
5ae9f53976 webservice MDL-20805 add admin token page. To do: create and delete operation + context support 2010-01-06 09:33:05 +00:00
Rossiani Wijaya
cdfedbd228 MDL-18824 changing fullname name (fullnamedisplay) default value to language. 2010-01-06 05:11:25 +00:00
Petr Skoda
84d6e8323d MDL-21189 yui combined file loading admin setting 2009-12-25 22:47:41 +00:00
jerome mouneyrac
7886efc41e webservice MDL-20803 add switch to disable documentation, fix renderer call on login page, fix xhtml strict, add css file. TODO: use output render function to display tag, move all css style into the css file 2009-12-21 04:01:02 +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
jerome mouneyrac
b5bbeaf02c flash upgrader MDL-20841 New config setting excludeoldflashclients will set a minimum version for flash clients. A check in the standard_head_html is run once, and will set a session variable with the current flash version. If the current flash version is lower than the minimum requirement, then Moodle will serve alternate content whenever a flash file is requested. The alternate file will ask the user to upgrade flash, merged from 1.9 2009-12-02 06:38:16 +00:00
Anthony Borrow
73658d4223 MDL-20921 - removing extra parameter being passed to admin_setting_configcheckbox which was preventing outcomes from being enabled on the site 2009-11-21 01:10:24 +00:00
Penny Leach
edf1fc350a portfolio: MDL-20892 moved portfolio/type/* plugins to portfolio/* 2009-11-18 13:27:38 +00:00
Petr Skoda
4c1ba3ffc7 MDL-18006 MDL-18807 MDL-20853 merging sam's changes from MOODLE_19_STABLE, going to fix some more problems in this new code soon 2009-11-17 16:11:25 +00:00
Dongsheng Cai
99d5265525 "MDL-20602, added link external option in file picker" 2009-11-08 13:20:37 +00:00
Sam Hemelryk
8958174c48 navigation MDL-20651 Changed setting from hide to show 2009-11-05 09:31:55 +00:00
Sam Hemelryk
da3ab9c4be navigation MDL-20651 Added config setting to hide course categories on the navigation
As requested and voted on admin can now choose not to include course categories within the navbar and global navigation block.
At the same time I also introduced a second setting, showallcourses, which ensures all of the courses a user is registered in are shown on the navigation at all times.
2009-11-04 07:23:19 +00:00
Petr Skoda
11b749ca90 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 10:32:02 +00:00
Petr Skoda
d628171f32 MDL-20697 get_site() replaced by proper installation time test 2009-11-01 10:16:45 +00:00
Petr Skoda
2a250a0b2e MDL-20697 removing duplicate error string cannotfindsite, fixing get_site() which is now using exceptions 2009-11-01 09:21:41 +00:00
Eloy Lafuente
79a7bcfd0b MDL-20591 IMS-CC import: Integration committed. Next weeklies will include it. Merged from 19_STABLE 2009-10-26 09:21:50 +00:00
skodak
72977b3786 MDL-17135 moving all webservice and external API related admin UI to new directory, I did not expect there would be so many files, sorry for the trouble 2009-10-21 19:58:50 +00:00
jerome
4955481bf3 webservice MDL-17135 fix navigation (kudo to Sam) + trivial few changes 2009-10-20 06:34:46 +00:00
dongsheng
e98a55c066 "MDL-20470, add an option to enable/disable filepicker button" 2009-10-14 03:11:48 +00:00
dongsheng
1a03384f5e "MDL-20470, rename formslib element name and add an option to turn the picker button on/off" 2009-10-13 08:31:50 +00:00
moodler
da124b5e40 Fixed a spelling error protokol -> protocol 2009-10-13 06:16:06 +00:00
skodak
cc93c7da15 MDL-12886 minor web service code refactoring which includes new base server class, slightly changed admin UI, sample REST test client, cleaned up lang packs; more changes ahead and lots of TODOs to elliminate; expect more commints in the next few days 2009-10-12 21:46:16 +00:00
dongsheng
92eaeca5c9 "MDL-20470, use a gloabl varible repositoryuseexternallink to make filepicker return the link instead of downloading to moodle file pool" 2009-10-07 10:16:45 +00:00
tjhunt
7409013e79 moodlelib: MDL-19764 change get_list_of_countries so admins can more easily control the list.
* New admin setting $CFG->allcountrycodes - on Location page.
* Same rules used to translate country names as any other string.
* With unit tests.
2009-10-02 11:30:11 +00:00
tjhunt
7d4dfc481e quiz: MDL-19145 Safe Exam Browser integration.
This is a better alternative to 'secure' mode.

It needs to be enabled by the administrator.
2009-09-30 10:57:57 +00:00
nicolasconnault
ca497f4f7c MDL-19676 Properly hiding blog_menu from block dropdown when blogs are disabled. Also showing "Blogs are disabled" in existing blog_menu blocks and removing old bloglevel options from subsystems settings 2009-09-15 07:19:03 +00:00
jerome
9baf682518 webservice MDL-12886 web service administration 2009-09-09 07:55:03 +00:00
nicolasconnault
cae837087a MDL-19676 Blog improvements 2009-09-04 00:36:43 +00:00
moodler
7689a0f34b admin/settings MDL-20180 Moved "Debugging" from the Server menu to the Development menu where it makes more sense.
Also moved some things around a bit to make them look a little better.  Ideally Experimental would be last but this is not easy to do because unit tests adds items to the end later.
2009-08-28 07:34:39 +00:00
skodak
0a127169fe MDL17980 reverting last commit - other devs agreed, to be explained in tracker 2009-08-03 07:35:41 +00:00
peterbulmer
1b509b3699 MDL17980 mnet improvements
* Allow multiple roles to be allocated by identity provider
* Allow existing enrolment plugins to manage mnet enrolments


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2009-08-03 03:38:23 +00:00
skodak
360dde50ba MDL-19943 new debug optiosn for validators link and page info in footer 2009-07-27 20:36:28 +00:00
dongsheng
1bcb7eb540 "MDL-19118, comments api" 2009-07-24 02:44:44 +00:00
skodak
8b6a09680a fixed whitespace 2009-07-09 19:54:54 +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
nicolasconnault
54dad8a88f MDL-19677 Removing prematurally added setting 2009-07-02 05:55:24 +00:00
nicolasconnault
6e155d1c00 MDL-19677 Upgrading sites that use $CFG->bloglevel == BLOG_GROUP_LEVEL or BLOG_COURSE_LEVEL to BLOG_SITE_LEVEL, and removed these options from admin/settings/security.php 2009-07-01 08:17:53 +00:00
tjhunt
b70094743a themes: MDL-19077 change how the theme is initialised and CSS is served.
This is part of http://docs.moodle.org/en/Development:Theme_engines_for_Moodle%3F

$THEME is now initialised at the same time as $OUTPUT. Old functions like
theme_setup are deprecated in favour of methods on $PAGE. There is a new
theme_config class in outputlib.php that deals with loading the theme config.php file.

CSS used to be served by themes styles.php files calling a function in weblib.php.
Now it works by each theme's styles.php file doing
$themename = basename(dirname(__FILE__));
require_once(dirname(__FILE__) . '/../../theme/styles.php');
which is less code to be copied into each theme. (Old-style styles.php files still
work thanks to some code in deprecatedlib.php.)

Admin UI for choosing a theme cleaned up.

A couple of theme-specific hard-coded hacks like $THEME->cssconstants and
$THEME->CSSEdit have been replaced by a more generic $THEME->customcssoutputfunction
hook. See examples at the end of outputlib.php

Also:
* Fix setting the theme in the URL, which seems to have been broken since 1.9.
* Fix up errors on a few pages caused by the new initialisation order.
* MDL-19097 moodle_page::set_course should not set $COURSE unless it is $PAGE.
* httpsrequired() from moodlelib.php moved to $PAGE->https_required().
* Move has_started() method to the renderer base class.
* Further fixes to display of early errors.
* Remove print_header/footer_old from weblib. I did not mean to commit them before.
2009-07-01 05:54:26 +00:00
tjhunt
42fafd4b57 debug / lang string: MDL-19467 Debugging option to show where each lang string came from.
New option on Administration -> Server -> Debugging called
'Show origin of languages strings' ($CFG->debugstringids).

If this is set, get_string will add the name of the lang file and the id of the string
to each string it gets, so instead of returning 'No', it will return '{No admin/checkboxno}'.
2009-06-30 01:59:48 +00:00