25 Commits

Author SHA1 Message Date
Andrew Nicols
9043dc75bf
MDL-82183 core: Coding style fixes for core\output 2024-06-26 23:00:33 +08:00
Andrew Nicols
ff0fd2764a
MDL-82183 core: Update namespace of moved output classes 2024-06-26 23:00:33 +08:00
Andrew Nicols
2fff48b07c
MDL-82183 core: Migrate all output classes to autoloaded 2024-06-26 23:00:31 +08:00
Eloy Lafuente (stronk7)
ba1f804ffa
MDL-65292 style: Fix all function declarations white space
This has been generated running the following Sniffs, all
them part of the Moodle's CodeSniffer standard:
- PSR12.Functions.ReturnTypeDeclaration
- PSR12.Functions.NullableTypeDeclaration
- moodle.Methods.MethodDeclarationSpacing
- Squiz.Whitespace.ScopeKeywordSpacing

All them are, exclusively, about correct spacing, so the changes
are, all them, only white space changes.

Only exceptions to the above are 3 changes what were setting the
return type in a new line, and, when that happens, the closing
parenthesis (bracket) has to go to the same line than the colon.
2024-02-28 23:33:26 +01:00
Marina Glancy
6b081d2e9f MDL-74465 blocks: allow configuration in modal
Introduce 'pagehash' - an identifier that uniquely identifies a page for the user session
2023-03-30 12:15:54 +01:00
Juan Leyva
609e99b5cd MDL-73670 block: Remove hack to force returning the overview block 2023-03-14 13:14:29 +01:00
Andrew Nicols
a3cc26f8bb MDL-76583 core: Update uses of external_* classes 2023-01-19 07:34:09 +08:00
sam marshall
96e2caeaa2 MDL-74733 core_navigation: Secondary nav in plugins, change namespace
Secondary nav previously had to be in my_plugin\local\views\secondary; this
location continues to work but is deprecated. The new location is
my_plugin\navigation\views\secondary.
2022-06-08 15:40:44 +01:00
Juan Leyva
3a305dd4d1 MDL-72092 blocks: Force course overview fake block 2022-02-25 15:15:07 +08:00
Paul Holden
844f4a7fb3 MDL-72716 blocks: fix external fetching of available blocks.
Pass `$PAGE->subpage` value in AJAX request, which is required on
some pages (e.g. user dashboard) for loading existing blocks.
2021-12-29 11:59:27 +00:00
Paul Holden
7905bbf240 MDL-73330 blocks: add missing library require for constants.
All the MY_PAGE_* constants used since 15b41641 reside in another
library. We should be explicit and include it, to avoid warnings.
2021-12-09 16:06:15 +00:00
Mathew May
15b416416c MDL-73087 blocks: Add a way to fetch my courses via WS 2021-12-02 18:40:52 +08:00
Peter Dias
f4d3606a2e MDL-71901 core: Allow blocks to specify their own nav
- Part of: MDL-69588
2021-08-23 17:47:01 +08:00
Ilya Tregubov
7a77493ba5 MDL-70528 h5pactivity: Fix block can't be added to h5pactivity page. 2021-01-26 15:19:01 +02:00
Mihail Geshoski
d16faf211d MDL-57614 core_block: Create webservice that returns the addable blocks
Creates a webservice that returns the addable blocks in a given page.
The webservice expects the page context id, page type and page layout as
parameters and returns the block name and block title for each available
block.
2020-12-02 13:40:41 +08:00
sam marshall
26231f17e6 MDL-70141 core_block: Web service set $PAGE url to avoid warnings 2020-11-06 17:37:11 +00:00
Dani Palou
8c84eeeeac MDL-68098 ws: Fix WebServices broken by filters HTML 2020-09-22 09:43:03 +02:00
Juan Leyva
ff490afbff MDL-67167 block: Force returned configuration values to be JSON encoded
Contributed plugins may set non-scalar values as valid instance configuration values (the core RSS client block does the same)
2019-11-07 13:29:52 +01:00
Juan Leyva
c9acdfb6dc MDL-65400 block: Support getting block settings via WS 2019-10-23 15:33:56 +02:00
Andrew Nicols
dc2e54696b MDL-63702 core_block: Correct phpdoc for get_users 2018-11-02 08:34:20 +08:00
Adrian Greeve
98f8c082de MDL-63702 core_block: Update to use new userlist interface.
This allows user data to be deleted on a role basis.
2018-10-31 10:01:44 +08:00
Juan Leyva
cde3dc05bc MDL-63694 core_block: Return block contents via WS 2018-10-25 23:42:48 +02:00
Juan Leyva
0f8b26043f MDL-63465 blocks: New WS core_blocks_get_dashboard_blocks 2018-10-18 09:17:24 +02:00
Frédéric Massart
cd7baa11c9 MDL-62248 core_block: Implement privacy API 2018-04-30 15:23:41 +08:00
Juan Leyva
8446ba3641 MDL-50970 core_block: New Web Service core_block_get_course_blocks 2017-04-03 09:27:53 +02:00