[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 This files describes API changes in /blocks/* - activity modules, 2 information provided here is intended especially for developers. 3 4 === 3.1 === 5 6 * The collapsed class was removed from the navigation block to make it compatible with aria. 7 * New aria attributes were added on the navigation block [aria-expanded="false"]. 8 * The tree JS handling were moved from YUI to AMD module (Jquery). 9 10 === 2.9 === 11 12 * The obsolete method preferred_width() was removed (it was not doing anything) 13 * Deprecated block_base::config_save as is not called anywhere and should not be used. 14 * Added instance_copy() function to the block_base class. This function allows for block 15 specific data to be copied when a block is copied. 16 17 === 2.8 === 18 19 * The instance_config_print() function was removed. It was deprecated in 20 Moodle 2.0, but without debugging notices. Since it was no longer a part 21 of the code path, debugging notices would not have been displayed. 22 * Deprecated functions were removed from the block_base class: 23 ** _print_block() 24 ** _print_shadow() 25 ** _title_html() 26 ** _add_edit_controls() 27 ** config_print() 28 29 === 2.6 === 30 31 * Deprecated /admin/block.php was removed, make sure blocks are using settings.php instead. 32 33 === 2.4 === 34 35 Created new capability 'blocks/xxx:myaddinstance' that determines whether a user can add 36 a specific block to their My Home page. This capability was only defined for blocks where 37 the applicable_formats function does not include "'my' => false" in the returned array, 38 allowing it be added to the My Home page. 39 40 === 2.3 === 41 42 required changes in code: 43 * block_xxx_pluginfile() is now given the 7th parameter (hopefully the last one) that 44 contains additional options for the file serving. The array should be re-passed 45 to send_stored_file(). 46 47 === 2.0 === 48 49 required changes in code: 50 * use new DML syntax everywhere 51 * use new DDL syntax in db/upgrade.php 52 * replace defaults.php by settings.php and db/install.php 53 * replace STATEMENTS section in db/install.xml by db/install.php 54 * move post instalation code from install() method into db/install.php 55 * completely rewrite file handling 56 * rewrite backup/restore 57 * theme changes: move plugin styles into blocks/xxx/styles.css and use new css markers for images, 58 move all images into new blocks/xxx/pix/ directory and use new outputlib api 59 old global $THEME is fully replaced by $OUTPUT 60 * remove '_utf8' from language pack names, use new {$a} syntax in language packs 61 * use 'pluginname' lang pack identifier instead of 'blockname' 62 * move cron and version number into standard version.php 63 * removed support for old config_global.html, use settings.php 64
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |