425 Commits

Author SHA1 Message Date
Dongsheng Cai
8c4a468791 "MDL-13766, fixed call-time pass-by-reference warning" 2010-03-09 08:19:41 +00:00
Dongsheng Cai
81bdfdb9af "MDL-13766, fixed Call-time pass-by-reference warning" 2010-03-04 09:28:17 +00:00
Dongsheng Cai
a642bf6f37 "MDL-21507, enable repository type by default" 2010-03-04 06:47:21 +00:00
Petr Skoda
87ad1edcd6 MDL-21400 JS modules now include needed strings in module description + fixed some string and icon issues in file picker 2010-02-07 09:34:19 +00:00
Dongsheng Cai
1a6195b428 "MDL-21443, update phpdocs" 2010-01-29 05:50:40 +00:00
Penny Leach
635f1a8b01 NOTABUG fixed some phpdocs in repository baseclass 2010-01-28 20:35:02 +00:00
Dongsheng Cai
1e0b0415e1 "MDL-21458, fixed undefined index in repository module" 2010-01-28 06:59:34 +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
Penny Leach
92a89068c9 repo MDL-21443 fix phpdocs to match method signatures 2010-01-28 05:12:35 +00:00
Dongsheng Cai
2539ce37a6 "MDL-21170, fixed pix_url output problem, improve javascript-static.js for new filemanager" 2010-01-21 06:37:04 +00:00
Dongsheng Cai
99eaca9d3d "MDL-21170, major update to filepicker, complete rewrote filepicker javascript code to use YUI3, need furthur polish" 2010-01-15 07:48:38 +00:00
Petr Skoda
0f4c64b79f MDL-21235 new link method in html_write, partinally replaces old html_link, going to add new action_link soon 2010-01-14 22:10:20 +00:00
Petr Skoda
985d1d1d22 MDL-21187 brand new yui2 lib loading now using the official YAHOO oholoaders which properly resolves all dependencies; please note we are still suing the YUI2 CSS preloading 2009-12-25 15:27:47 +00:00
Petr Skoda
b5d0cafc6f MDL-20787 final switch to new $OUTPUT->pix_url() - yay! 2009-12-16 21:50:45 +00:00
Petr Skoda
f44b10ed93 MDL-21139 replace all yui functions/methods with yui2 to make room for yui3 2009-12-16 20:25:14 +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
Dongsheng Cai
062d21cd71 "MDL-21103, check if repository plugin existed" 2009-12-15 08:09:00 +00:00
Dongsheng Cai
5363905a51 "MDL-13766, improve user instances list" 2009-12-02 10:04:04 +00:00
Dongsheng Cai
7d9cb3b51a "MDL-20824, use php exception to processs the file which excess the maximum file size" 2009-11-13 05:31:02 +00:00
Dongsheng Cai
99d5265525 "MDL-20602, added link external option in file picker" 2009-11-08 13:20:37 +00:00
Dongsheng Cai
a0ff4137d9 "MDL-13766, fixed a bug in move_to_filepool and moving code block" 2009-11-06 09:32:44 +00:00
Dongsheng Cai
6f2cd52aa5 "MDL-19181, 1. fixed repository listing when using non-admin role 2. added boilerplate" 2009-11-06 09:07:46 +00:00
Dongsheng Cai
41076c587f "MDL-20602, add support for FILE_INTERNAL and FILE_EXTERNAL" 2009-11-02 06:45:12 +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
skodak
d18e0fe646 MDL-20353 adding missing data types of hidden form fields 2009-09-26 17:07:08 +00:00
dongsheng
a560785fae "MDL-13766, improve repository module to support file manager and disable draft plugin in filemanager" 2009-09-03 03:37:55 +00:00
dongsheng
e5fa0e8d7d "MDL-13766, improve filepicker to use path option" 2009-08-22 18:16:20 +00:00
nicolasconnault
55400db0b4 MDL-19821 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno 2009-08-20 08:49:23 +00:00
dongsheng
76bff7813a "MDL-19181, doanything should be true" 2009-08-14 09:55:01 +00:00
dongsheng
dfac37cc37 "MDL-13766, fixed incorrect parameter of get_context_instance_by_id" 2009-08-14 08:47:47 +00:00
nicolasconnault
50a5cf09a3 MDL-19821 Converted print_box* to $OUTPUT->box* 2009-08-10 05:49:18 +00:00
dongsheng
c86dde2ec5 "MDL-19181, display plugin instances based on capabilities" 2009-08-07 10:02:47 +00:00
jerome
75003899ae filemanager MDL-16597 fix YUI repository requires and remove style='display:none' from filemanager form - credit: Dongsheng 2009-07-23 07:48:30 +00:00
dongsheng
7d6ca931f3 "MDL-13766, allow null value saved in options" 2009-07-20 07:08:02 +00:00
tjhunt
704ac34407 outputlib tables: MDL-19755 fix all cases of deprecated $table->rowclass
Also fix wrong title on Manage filters admin page.
2009-07-15 05:37:31 +00:00
samhemelryk
19c9f09430 filelib MDL-19707 Converted existing ...str_replace('png','gif')... to use file_extension_icon and file_mimetype_icon 2009-07-07 06:16:01 +00:00
tjhunt
a28c92539e MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-03 06:38:41 +00:00
tjhunt
ddedf979b4 MDL-19690 - more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-03 06:19:25 +00:00
tjhunt
c8873c496b MDL-19690 - eliminate the $OUTPUT->initialise_deprecated_cfg_pixpath horrible hack.
Replace $CFG->pixpath with $OUPTUT->old_icon_url(...) instead.
2009-07-02 11:23:47 +00:00
tjhunt
f2a1963c43 MDL-19690 - lots more $CFG->pixpath to $OUTPUT->old_icon_url 2009-07-02 11:09:15 +00:00
dongsheng
390baf4664 "MDL-13766, update image path, see http://moodle.org/mod/forum/discuss.php?d=126887" 2009-06-30 02:12:16 +00:00
dongsheng
a4103e65fa "MDL-13766, fixed image path" 2009-06-29 03:41:02 +00:00
dongsheng
d1bfc05ed7 "MDL-13766, improve search form in file picker, improve error handing" 2009-06-25 04:12:43 +00:00
skodak
ff5fe31160 MDL-19580 cleanup of require css and js filepicker code 2009-06-24 22:34:29 +00:00
dongsheng
aa8ce6e3fd "MDL-13766, use new API to load javascript files, fix xhtml strict issues in javascript, but YUI cannot work in xml strict mode, so do not true on xml strict option in moodle if you want to use file picker" 2009-06-16 02:42:32 +00:00
tjhunt
cf6155226c ajaxlib/require_js: MDL-16693 $PAGE->requires->... deprecates require_js etc.
There is a new implementation of require_js in lib/deprecatedlib.php,
based on $PAGE->requires.

There were a few other recently introduced functions in lib/weblib.php,
namely print_js_call, print_delayed_js_call, print_js_config and
standard_js_config. These have been removed, since they were never in
a stable branch, and all the places that used them have been changed
to use the newer $PAGE->requires->... methods.

get_require_js_code is also gone, and the evil places that were calling
it, even though it is an internal function, have been fixed.

Also, I made some minor improvements to the code I committed yesterday
for MDL-16695.

All that remains is to update all the places in core code that are
still using require_js.

(This commit also fixes the problem where the admin tree would not
start with the right categories expanded.)
2009-06-12 12:13:07 +00:00
dongsheng
9deb3d000a "MDL-13766, shouldn't check login in repository base class, because developer may define a session name later" 2009-06-10 08:46:31 +00:00
dongsheng
1c05907d07 "MDL-13766, ->pixpath doesn't work in web service, use ->httpswwwroot instead" 2009-06-04 09:33:25 +00:00
dongsheng
a3d8df257b "MDL-13766, repository api, fixed typeid value" 2009-06-04 06:40:35 +00:00
dongsheng
c875ad9a21 "MDL-13766, repository module, fixed a undefined variable" 2009-05-29 09:28:12 +00:00