Juan Leyva
145900708c
MDL-54941 webservice: Refactor file handling in WS
...
This commit reduces boilerplate code.
It also forces WS returning files to always return the following
fields: filename, filepath, mimetype, filesize, timemodified and
fileurl.
2016-07-28 12:07:04 +02:00
Eloy Lafuente (stronk7)
4feed61702
Merge branch 'MDL-55220-master' of git://github.com/jleyva/moodle
2016-07-19 13:21:36 +02:00
Juan Leyva
55bb8189ba
MDL-55220 forum: Add string filtering in WS
...
The following external functions now filter the discussion and post
name and subject.
- get_forum_discussions_paginated
- get_forum_discussion_posts
2016-07-14 09:10:07 +01:00
Dan Poltawski
8846f9950f
Merge branch 'MDL-55112-master' of git://github.com/junpataleta/moodle
2016-07-11 14:42:06 +01:00
Juan Leyva
7ef49bd393
MDL-54951 webservice: Return intro text files in modules
2016-07-04 09:24:28 +01:00
Jun Pataleta
ca7e2fc21f
MDL-55112 mod_forum: Query all forum fields to avoid debug messages
2016-07-04 15:22:56 +08:00
Cameron Ball
f23e9b6ba4
MDL-49414 webservices: Remove deprecated functions
2016-04-27 15:54:38 +08:00
Ben Kelada
48143990e0
MDL-53345 forum: rename itemid
2016-04-18 11:04:57 +10:00
Ben Kelada
e881c4f5c3
MDL-53345 forum: Add attachmentareaid to support attachments in api
2016-04-18 11:04:57 +10:00
Ben Kelada
41182118ae
MDL-53345 forum: Add item id as parameter to support inline attachments
2016-04-18 11:04:57 +10:00
Dani Palou
a69c9abdaf
MDL-49612 forum: Fix some external_value creation in params declaration
2016-01-26 08:55:55 +01:00
Ben Kelada
5f219cf181
MDL-372 forum: Improve pinning and update for Moodle 3.0
2016-01-13 02:01:26 +00:00
Ben Kelada
14ebc39645
MDL-52576 forum: fix user profile picture in external service
2016-01-04 11:36:12 +11:00
Dan Poltawski
c7bba4e5af
Merge branch 'MDL-52165-master' of git://github.com/jleyva/moodle
2015-12-08 08:51:34 +00:00
Juan Leyva
04cd8ae3c0
MDL-52165 mod_forum: New Web Service mod_forum_can_add_discussion
2015-12-04 15:30:16 +01:00
Dan Poltawski
50901a53bc
Merge branch 'MDL-51664-master' of git://github.com/FMCorz/moodle
2015-12-03 11:16:30 +01:00
Andrew Nicols
62029ba7f4
Merge branch 'MDL-51565-master' of git://github.com/jleyva/moodle
2015-10-16 09:35:23 +08:00
Juan Leyva
5b587c7570
MDL-51565 webservice: Fix return types definitions
...
This commit also format the activity name via external_format_string in
some cases
2015-10-12 13:24:49 +02:00
Juan Leyva
4f3a2d2103
MDL-51637 forum: Make forum_get_discussions_paginated return group post
2015-10-12 10:08:17 +02:00
Frederic Massart
583b02e405
MDL-51664 external: Update usage of external_util::validate_courses
2015-10-12 12:01:15 +08:00
Juan Leyva
d85bedf796
MDL-49823 webservice: Support gravatar profile images
2015-10-01 09:36:31 +02:00
Juan Leyva
ea5b910b3a
MDL-51413 forum: Return additional field in get_forums_by_courses WS
2015-09-18 17:27:14 +02:00
Andrew Nicols
7267daa8d0
MDL-50994 mod_forum: Correct docs for discussion WS
2015-09-14 15:43:26 +08:00
Juan Leyva
7ab43ac84a
MDL-50994 mod_forum: New Web Service mod_forum_add_discussion
2015-09-11 13:31:36 +02:00
Andrew Nicols
d3d8f81caa
MDL-50995 mod_forum: Coding style fixes
2015-09-09 16:16:43 +08:00
Juan Leyva
50a2031712
MDL-50995 mod_forum: New WS mod_forum_add_discussion_post
2015-09-02 12:20:06 +02:00
Andrew Nicols
b9e4972c7a
Merge branch 'MDL-50493-master' of git://github.com/jleyva/moodle
2015-08-04 11:46:14 +08:00
Juan Leyva
1c2b788256
MDL-49796 webservices: Fix the functions description
2015-07-14 11:31:57 +02:00
Juan Leyva
039c81f098
MDL-50489 forum: Handle qanda forums in get_forum_discussions_paginated
...
I removed the last qanda checks in forum_user_can_see_discussion because they are not necessary and
they make the external function fail.
A user in a qanda forum can always see a discussion (he needs to see the discussion to be able to reply).
What he cannot see are the other user posts unless he has replied to the discussion once and the edition period
(usually 30 minutes) has ended.
Note also that forum_user_can_see_discussion was originally only used when displaying forums in blog format
in order to display the button show more or not, this is the reason this wasn't detected before.
2015-07-02 10:55:40 +02:00
Juan Leyva
b1aa7dfac3
MDL-50493 forum: Handle correctly qanda forums in get_discussion_posts
2015-06-06 00:00:56 +02:00
Dan Poltawski
a8d8783988
Merge branch 'MDL-49921-master' of git://github.com/jleyva/moodle
2015-04-22 16:40:15 +01:00
Juan Leyva
c8f1d8a026
MDL-49921 forum: Handle exceptions correctly in get_forums_by_courses
2015-04-22 09:47:18 +02:00
Andrew Nicols
9d745218e8
Merge branch 'MDL-49902-master' of git://github.com/jleyva/moodle
2015-04-21 11:40:39 +08:00
Juan Leyva
ea2fa324d7
MDL-49902 forum: Add missing capability check in mod_forum_view_forum
2015-04-16 22:07:11 +02:00
Juan Leyva
81f810dca8
MDL-49763 webservices: Handle correctly deleted users for forums
2015-04-10 22:21:42 +02:00
Juan Leyva
a3c315dda2
MDL-49503 forum: New external function mod_forum_view_forum_discussion
2015-04-02 17:08:42 +02:00
Juan Leyva
4a1e44a155
MDL-49502 forum: New external function view_forum
2015-03-27 11:33:34 +01:00
Juan Leyva
40afeb4044
MDL-45303 Web Services: forum_discussions not checking groups
2014-11-03 21:55:03 +01:00
Juan Leyva
f47eeafdfd
MDL-47916 web services: Fixed invalid returned value type
2014-10-27 23:14:13 +01:00
Dan Poltawski
ea594eb10e
Merge branch 'MDL-47084-master' of git://github.com/jleyva/moodle
2014-10-08 14:43:13 +01:00
Damyon Wiese
6b58a6a445
Merge branch 'MDL-46458-master' of git://github.com/jleyva/moodle
...
Conflicts:
version.php
2014-10-08 21:14:39 +08:00
Dan Poltawski
8b2d52b88d
Merge branch 'MDL-47389-master' of git://github.com/jleyva/moodle
2014-10-08 11:08:29 +01:00
Juan Leyva
7ea6ada343
MDL-47389 forum: Return discussions count in get_forums_by_courses ws
2014-10-03 16:39:02 +02:00
Juan Leyva
da1be050bc
MDL-47084 forum: New moodle_url method make_webservice_pluginfile_url
2014-10-03 16:34:48 +02:00
Juan Leyva
694bf0c74b
MDL-47084 forum: Return user picture URL in get_posts WS
2014-10-03 16:34:48 +02:00
Juan Leyva
48fb0250d2
MDL-47084 forum: Return attachments and pluginfiles in get_posts WS
2014-10-03 16:34:48 +02:00
Juan Leyva
ef8a44dea0
MDL-46458 forum: get_forum_discussions deprecated
2014-10-03 16:34:00 +02:00
Juan Leyva
7c51b40ab1
MDL-46458 forum: New WS get_forum_discussions_paginated
2014-10-03 16:31:41 +02:00
Marina Glancy
dc14212b61
MDL-46054 web_services: bug fix in core_user_get_users
...
Thanks to Mikko Rantanen for the patch
2014-09-29 16:03:17 +02:00
Juan Leyva
fb8840d291
MDL-30106 forum: get_posts WS fixes in data generator and def. values
2014-05-05 11:56:43 +02:00