[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/blocks/ -> upgrade.txt (source)

   1  This files describes API changes in /blocks/* - activity modules,
   2  information provided here is intended especially for developers.
   3  
   4  === 2.8 ===
   5  
   6  * The instance_config_print() function was removed. It was deprecated in
   7    Moodle 2.0, but without debugging notices. Since it was no longer a part
   8    of the code path, debugging notices would not have been displayed.
   9  * Deprecated functions were removed from the block_base class:
  10  ** _print_block()
  11  ** _print_shadow()
  12  ** _title_html()
  13  ** _add_edit_controls()
  14  ** config_print()
  15  
  16  === 2.6 ===
  17  
  18  * Deprecated /admin/block.php was removed, make sure blocks are using settings.php instead.
  19  
  20  === 2.4 ===
  21  
  22  Created new capability 'blocks/xxx:myaddinstance' that determines whether a user can add
  23  a specific block to their My Home page. This capability was only defined for blocks where
  24  the applicable_formats function does not include "'my' => false" in the returned array,
  25  allowing it be added to the My Home page.
  26  
  27  === 2.3 ===
  28  
  29  required changes in code:
  30  * block_xxx_pluginfile() is now given the 7th parameter (hopefully the last one) that
  31    contains additional options for the file serving. The array should be re-passed
  32    to send_stored_file().
  33  
  34  === 2.0 ===
  35  
  36  required changes in code:
  37  * use new DML syntax everywhere
  38  * use new DDL syntax in db/upgrade.php
  39  * replace defaults.php by settings.php and db/install.php
  40  * replace STATEMENTS section in db/install.xml by db/install.php
  41  * move post instalation code from install() method into db/install.php
  42  * completely rewrite file handling
  43  * rewrite backup/restore
  44  * theme changes: move plugin styles into blocks/xxx/styles.css and use new css markers for images,
  45                   move all images into new blocks/xxx/pix/ directory and use new outputlib api
  46                   old global $THEME is fully replaced by $OUTPUT
  47  * remove '_utf8' from language pack names, use new {$a} syntax in language packs
  48  * use 'pluginname' lang pack identifier instead of 'blockname'
  49  * move cron and version number into standard version.php
  50  * removed support for old config_global.html, use settings.php
  51  


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1