Andrew Nicols
3e95e09b67
MDL-61309 mod_forum: Implement privacy deletion
2018-05-09 14:04:13 +08:00
Juan Leyva
b7ce46df3f
MDL-57407 mod_forum: Return ratings in external functions
...
External function get_forum_discussion_posts now returns ratings.
2017-09-08 13:49:09 +02:00
Juan Leyva
609a10739d
MDL-58259 mod_forum: Check create attachment cap in forum_add_attachment
...
We should add the permission check there because this function is used
indirectly by the external API that is not checking for this capability.
2017-05-05 10:28:11 +08:00
Juan Leyva
2256bb74af
MDL-58444 mod_forum: Return number of unread posts in WS
2017-03-30 11:55:38 +02:00
Juan Leyva
581e75bf3c
MDL-57390 mod_forum: Return more permissions in can_add_discussion
...
When adding new discussions we should know if:
- Pinned discussions can be created
- Attachments are supported
2017-03-14 15:25:54 +01:00
Dani Palou
aa9059b965
MDL-57962 forum: Allow creating new discussions with groupid -1
2017-02-14 10:28:33 +01:00
Eloy Lafuente (stronk7)
6214e08f6a
Merge branch 'MDL-57629-master' of git://github.com/jleyva/moodle
2017-01-17 20:55:05 +01:00
Dan Poltawski
a04ad3675a
Merge branch 'MDL-57554-master' of git://github.com/crazyserver/moodle
2017-01-16 11:17:58 +00:00
Pau Ferrer Ocaña
db3c9ff83f
MDL-57554 forum: Mark as read on view_forum_discussion calls
2017-01-13 09:27:20 +01:00
Pau Ferrer Ocaña
4669389d1a
MDL-57627 forum: Return if the user is tracking forum
2017-01-13 09:25:48 +01:00
Juan Leyva
9db43c7341
MDL-57629 webservice: Fix external functions phpdoc
...
Replace external_external_function_parameters with
external_function_parameters
2017-01-11 16:56:25 +01:00
Juan Leyva
30861fbdaa
MDL-56535 forum: Do not return user information in single discussion
...
This patch fixes the forum external functions
2016-11-01 20:52:58 +00:00
Juan Leyva
c8743f62b4
MDL-55728 webservice: Return editor files in Web Services
2016-10-03 16:49:13 +01:00
Eloy Lafuente (stronk7)
b3823c4365
Merge branch 'MDL-56019-master' of git://github.com/dpalou/moodle
2016-09-28 20:08:31 +02:00
Andrew Nicols
0f3bbfd4f8
MDL-55982 mod_forum: Add time-based discussion locking
...
This patch adds support for time-based locking of discussions.
Discussions are automatically locked after a user-definable period of
inactivity. After this time, only those with the the relevant capability
are able to add replies.
This has been designed to add support for other types of discussion locking
at a later date with relative ease.
2016-09-21 09:03:42 +08:00
Dani Palou
d33c67bc47
MDL-56019 ws: Use itemid null when getting modules intro
2016-09-19 11:33:55 +02:00
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