35 Commits

Author SHA1 Message Date
Penny Leach
677b6321af mnet MDL-21098 fixed quite a few issues in the mnet installer and testclient. Rebumped all plugin versions that use mnet to get the services reinstalled 2010-02-18 04:55:34 +00:00
Penny Leach
287efec6f6 mnet MDL-21276 get rid of all the $MNET* globals 2010-02-02 03:13:40 +00:00
Penny Leach
4196f8f73a mnet MDL-21473 bumping versions of mnet-enabled plugins again after fixing a mnet installer bug 2010-01-29 04:13:59 +00:00
Penny Leach
b740b3590f mnet MDL-21473 detect services we subscribe to, as well as publish at install/upgrade as well
and add upgrades for all mnet enabled plugins
2010-01-29 02:31:44 +00:00
Penny Leach
d23765c127 mnet MDL-21261 bumping version numbers of plugins that contain mnet definitions to get them installed properly 2010-01-28 20:24:53 +00:00
Penny Leach
d2ac37c1ab mnet MDL-21261 mnet overhaul - adding and removing files I missed in the last big commit 2010-01-28 20:17:12 +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
jerome mouneyrac
1bddb63dde mnet MDL-21294 repository remote plugin support exception now (not tested yet cause this plugin needs retest and probably rewrite) 2010-01-13 02:24:39 +00:00
Petr Skoda
0271a05d5a MDL-21318 more TODO info 2010-01-12 10:54:33 +00:00
Petr Skoda
645e2cc14d MDL-21318 adding link to tracker issue for TODOs 2010-01-12 10:24:55 +00:00
Dongsheng Cai
10d53fd349 "MDL-19235, add boilerplates to repository module files" 2009-12-17 03:40:38 +00:00
Petr Skoda
0ac940b3bf MDL-20712 using just $capablities for capability definition array, all other files in db/* do not use component names in definition array; old capability array names are of course supported 2009-11-04 19:24:12 +00:00
Dongsheng Cai
41076c587f "MDL-20602, add support for FILE_INTERNAL and FILE_EXTERNAL" 2009-11-02 06:45:12 +00:00
Petr Skoda
4317f92f3f MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 12:51:40 +00:00
dongsheng
c86dde2ec5 "MDL-19181, display plugin instances based on capabilities" 2009-08-07 10:02:47 +00:00
dongsheng
a53d4f45c4 "REPOSITORY/MDL-13766, create prepare_file function, it will prepare temp file for repository api" 2009-03-16 02:16:50 +00:00
dongsheng
5fa358d1ce "REPOSITORY/MDL-13766, separate page and path in get_listing function" 2009-02-18 06:52:54 +00:00
skodak
e8b7114d5e MDL-17774 refactored USER switching in cron scripts - now standardised in cron_setup_user() 2009-01-03 13:16:59 +00:00
nicolasconnault
dbc0194458 MDL_13766 Refactoring of core repository code and added first unit tests 2008-11-26 07:03:10 +00:00
jerome
c4f2cf4a20 MDL-15352: check that the peer has been setup 2008-10-30 04:24:46 +00:00
jerome
d8a560c64e MDL-15352: add warning message when no peer are set 2008-10-30 02:54:11 +00:00
jerome
e3ca0f3a04 MDL-15352: move local/remote common code into the repository library. 2008-10-30 02:30:26 +00:00
jerome
709c549551 MDL-15352: clean and comment the moodle remote plugin 2008-10-29 06:36:23 +00:00
jerome
970b69c3ab MDL-15352: check that the user exists on the remote server and that is allowed to access the file he's requesting 2008-10-28 04:03:12 +00:00
jerome
4ad46f21d3 MDL-15352: check that the user exists on the remote server and that is allowed to access the file he's requesting 2008-10-28 04:02:25 +00:00
jerome
571dde8f26 MDL-15352: check that the user exists on the remote server and that is allowed to access the file he's requesting 2008-10-28 04:00:34 +00:00
fmarier
6a77823cb6 MDL-17037 Lossless optimization of all PNG and JPEG images 2008-10-28 01:50:10 +00:00
jerome
a1c9c2bdc3 MDL-15352: add error management to mnet communication 2008-10-27 05:12:32 +00:00
jerome
e33014943d MDL-15352: fix search (Moodle remote plugin) 2008-10-24 08:39:37 +00:00
jerome
bcd41452b9 MDL-15352: clean indentation 2008-10-24 05:50:57 +00:00
jerome
46c8e3b0d6 MDL-15352: trivial change, add a clear error message when can't retirve listing 2008-10-24 05:36:59 +00:00
jerome
db98f1918c MDL-15352: fix a bug introduce when I cleaned mnet/xmlrpc/server.php 2008-10-23 09:21:49 +00:00
jerome
ef378cdcf4 MDL-15352: doesn't use anymore mnet system function, implemeted new mnet function, remote moodle service will appear into the peer service 2008-10-23 08:14:23 +00:00
jerome
a125058fc5 MDL-15352: a bit of cleaning into the remote repository plugin 2008-10-22 05:56:18 +00:00
jerome
d3dfe9aecb MDL-15352: first version of remote moodle plugin 2008-10-22 04:04:23 +00:00