206 Commits

Author SHA1 Message Date
Meirza
078055a51f MDL-77350 blocks: Added class properties that are not declared
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
2023-05-16 00:33:20 +07:00
Marina Glancy
854dd65966 MDL-74465 blocks: improve phpdocs 2023-03-30 11:41:16 +01:00
Andrew Nicols
a3cc26f8bb MDL-76583 core: Update uses of external_* classes 2023-01-19 07:34:09 +08:00
Marina Glancy
130d371ccf MDL-76088 blocks: fixed incorrect use of static cache 2022-11-28 11:58:47 +01:00
Jun Pataleta
a1c0b98c1d MDL-74317 blocks: Revert checking of block usage against page format 2022-05-05 10:02:29 +08:00
David Matamoros
e1da77a685 MDL-74317 blocks: Blocks can be added to profile pages
- Fixed method user_can_addto to take into account that
blocks can also be added to user profile pages
2022-05-02 10:45:30 +02:00
Sara Arjona
1823873d9a MDL-73339 core_blocks: New method can_block_be_added
A new method, can_block_be_added, has been added to
let blocks override it to decide whether it should
be added to a page or not.
2021-12-30 13:17:47 +01:00
Mathew May
6ca9c2154a MDL-70801 core_my: Add a new courses page 2021-11-15 11:49:35 +08:00
Paul Holden
58e8ad852f MDL-70823 blocks: safer unserializing during block restore. 2021-11-03 16:57:06 +01:00
Paul Holden
56b431c2f6 MDL-68084 blocks: check capability before getting content.
Some blocks (e.g. Calendar) load additional JS modules when returning
content. We need to make sure they aren't asked to generate content
unless the user can actually view the block, or the expected content
required by the JS will not exist in the DOM and can cause exceptions.
2020-05-12 19:23:36 +01:00
Juan Leyva
c9acdfb6dc MDL-65400 block: Support getting block settings via WS 2019-10-23 15:33:56 +02:00
Bas Brands
c906aed8ab MDL-65581 core_blocks: change classname for hidden blocks
Changing the added class .invisible to .ivisibleblock to avoid hiding the block completely
2019-05-13 12:31:00 +02:00
Sara Arjona
5ec0b3bc2e Merge branch 'master_MDL-65502' of https://github.com/danmarsden/moodle 2019-05-09 16:48:05 +02:00
Dan Marsden
8e119e4bb3 MDL-65502 blocks: Correct check for my dashboard page. 2019-05-09 10:31:52 +12:00
zpottie
7a02f020c3 MDL-58315 core: Add support for custom block classes 2019-05-03 16:12:29 +12:00
Mathew May
9757c65687 MDL-64506 Javascript: Remove docking JS.
Deprecate related lang strings & base functions now return false.
2019-04-03 19:34:20 +08:00
Mathew May
c8edee421e MDL-64506 theme_bootstrapbase: Remove bootstrapbase from core 2019-04-03 19:34:17 +08:00
Dan Marsden
ef78cf8f42 MDL-63995 blocks: Remove unused capabilities and warning. 2019-03-25 12:20:13 +13:00
Juan Leyva
96d9a6e430 MDL-63694 core_block: New block class method for external content
New method added block_base::get_content_for_external().
It will return all the block contents rendered for external functions.
If your block is returning formatted content or provide files for download,
you should override this method to use the external_format_text,
external_format_string functions for formatting or
external_util::get_area_files for files.
See block_html as example.
2018-10-25 23:41:26 +02:00
sam marshall
557554f99f MDL-58957 Global search: Add time fields to block_instances 2017-06-29 15:14:47 +01:00
Mark Nelson
94cec934a6 MDL-49553 core_block: final deprecation of config_save() 2016-01-06 10:58:50 +08:00
Nathan Lewis
ad5c323065 MDL-49306 blocks: Copy instance data when copying block instances 2015-04-08 14:41:05 +08:00
David Monllao
9db120e338 MDL-49385 blocks: Adding todo tag 2015-03-17 14:52:12 +08:00
Ruslan Kabalin
53c74b1813 MDL-49385 block_base: Deprecate config_save function.
block_base->config_save is not used anywhere any more. If contributed plugins
rely on it, it makes no difference since it is not being called, if they do
something like $this->config_save or parent::config_save somewhere in their
block class instance, this will still work as deprecated function will handle
it.
2015-03-13 09:32:48 +00:00
Andrew Davis
b6d7cff65f MDL-48910 core_block: user_can_addto() respects applicable formats 2015-02-10 08:07:23 +01:00
Frederic Massart
2c2171bdce MDL-45295 core_block: Removing obsolete method preferred_width() 2014-12-09 15:29:12 +08:00
Andrew Nicols
cbed1284f4 MDL-43506 Blocks: Remove various deprecated functions 2014-08-04 08:44:50 +08:00
Sam Hemelryk
f25a6839fd MDL-44120 block: tidied up block @package uses 2014-02-16 12:17:14 +13:00
Amy Groshek
dc3337b273 MDL-37674 - modify html_attributes() to add .no-header class when header will not be rendered 2013-08-16 09:17:44 +12:00
Sam Hemelryk
a69a7e89b8 MDL-40167 dock: tidy up after first peer-review 2013-07-15 09:46:03 +12:00
Sam Hemelryk
84192d7836 MDL-40167 dock: converted the dock JS to a YUI shifted module.
The patch converts the dock into a YUI shifter module and at
the same time improves several aspects of its operation.
The features of this patch include:
* Dock Module conversion.
* A loader that ensures we don't include the dock JS or its
  requirements unless actually required.
* We no longer include the dock JS for themes that don't
  enable it.
* Blocks no longer add registration events to the page
  instead a dockable attribute is added to the html and the
  loader looks for that.
* The dock module is properly documented and running YUIDoc
  gives good quality documentation.
* We no longer need the dock module registration or
  subcomponent.
* All events that can be delegated are now delegated.
* Removed unused variables and code left over after fixes.
* Support for docking blocks renderered using the new blocks
  render method. Better support for custom block regions.
2013-07-15 09:46:03 +12:00
Michael Aherne
4dd791328e MDL-40275 core Improve documentation for block_base::has_config() 2013-06-21 11:40:36 +01:00
Jason Fowler
473327030e MDL-32946 - Blocks - Improving image alts for accessibility. 2013-04-24 13:06:22 +08:00
Mark Nelson
9b06b50719 MDL-36864 blocks: only perform myaddinstance capability check on the My Moodle page, not on any other pages using the user context 2012-11-28 12:47:54 +08:00
Dan Poltawski
e830d6f98e Merge branch 'wip-MDL-30921-m24' of git://github.com/samhemelryk/moodle 2012-11-07 10:51:06 +08:00
Mark Nelson
464e00be28 MDL-34270 blocks: perform My Moodle addinstance capability check first 2012-11-06 14:56:47 +08:00
Mark Nelson
b291b59d6a MDL-34270 blocks: adding new add block capabilities 2012-11-02 14:32:01 +08:00
Sam Hemelryk
5c4581fc08 MDL-30921 blocks: Better default aria role given 2012-11-02 10:58:23 +13:00
Sam Hemelryk
91d941c34c MDL-30921 blocks: Added aria-labelledby and aria-label for blocks 2012-11-02 10:58:23 +13:00
Sam Hemelryk
697f7bd701 MDL-30921 blocks: Added a method to inject aria roles into block structure 2012-11-02 10:58:23 +13:00
Frederic Massart
fe2fdd11e4 MDL-34456 Librairies: Replaced deprecated get_context_instance() 2012-07-24 09:49:47 +08:00
Jonathan Champ
0885166fcc MDL-32689 Allow Blocks to decide whether they are collapsible. 2012-05-02 10:23:07 -04:00
Petr Skoda
324d210fe4 MDL-32251 one more E_STRICT fix 2012-04-01 12:23:07 +02:00
Petr Skoda
3fa0670a98 Merge branch 'MDL-26109' of git://github.com/nebgor/moodle 2011-02-14 22:10:37 +01:00
Petr Skoda
9c14c1c55b MDL-26223 prevent getting content of hidden blocks in edit mode 2011-02-13 18:14:55 +01:00
Aparup Banerjee
dde36f9d65 blocks MDL-26109 adding docking option to empty blocks as well. 2011-02-11 12:36:19 +08:00
Sam Hemelryk
740952e40b blocks MDL-24999 Fixed up regression in the display of block_list type blocks. Columns now site next to each other rather than below. 2010-11-11 05:15:41 +00:00
Eloy Lafuente
a03867380d MDL-22164 backup - cleaning old backup & restore code in blocks 2010-11-01 15:51:20 +00:00
Sam Hemelryk
d8ef60bd72 blocks MDL-24066 Blocks can now choose to be hideable + navigation and settings are no longer hideable. 2010-09-14 02:12:41 +00:00
Sam Hemelryk
10a92c3963 NOBUG: Corrected phpdocs 2010-09-08 05:36:54 +00:00