Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Classes | Functions | Variables
upgradelib.php File Reference

Various upgrade/install related functions and classes. More...

Classes

class  core_upgrade_time
 Static class monitors performance of upgrade steps. More...
 
class  downgrade_exception
 Exception indicating downgrade error during upgrade. More...
 
class  plugin_defective_exception
 @subpackage upgrade More...
 
class  plugin_incompatible_exception
 Exception thrown when attempting to install a plugin that declares incompatibility with moodle version. More...
 
class  plugin_misplaced_exception
 Misplaced plugin exception. More...
 
class  upgrade_exception
 Exception indicating unknown error during upgrade. More...
 
class  upgrade_requires_exception
 @subpackage upgrade More...
 

Functions

 admin_mnet_method_get_docblock (ReflectionFunctionAbstract $function)
 Given some sort of reflection function/method object, return an array of docblock lines, where each line is an array of keywords/descriptions. More...
 
 admin_mnet_method_get_help (ReflectionFunctionAbstract $function)
 Given some sort of reflection function/method object, return just the help text. More...
 
 admin_mnet_method_profile (ReflectionFunctionAbstract $function)
 Given some sort of reflection function/method object, return a profile array, ready to be serialized and stored. More...
 
 check_admin_dir_usage (environment_results $result)
 Check whether the admin directory has been configured and warn if so. More...
 
 check_database_storage_engine (environment_results $result)
 This function verifies that the database is not using an unsupported storage engine. More...
 
 check_database_tables_row_format (environment_results $result)
 This function verifies if the database has tables using innoDB Antelope row format. More...
 
 check_igbinary322_version (environment_results $result)
 Check if the igbinary extension installed is buggy one. More...
 
 check_is_https (environment_results $result)
 Check if the site is being served using an ssl url. More...
 
 check_libcurl_version (environment_results $result)
 Check if recommended version of libcurl is installed or not. More...
 
 check_max_input_vars (environment_results $result)
 Environment check for the php setting max_input_vars. More...
 
 check_mysql_file_format (environment_results $result)
 This function verfies that the database has tables using InnoDB Antelope row format. More...
 
 check_mysql_file_per_table (environment_results $result)
 This function verfies that the database has a setting of one file per table. More...
 
 check_mysql_incomplete_unicode_support (environment_results $result)
 This function checks the database to see if it is using incomplete unicode support. More...
 
 check_mysql_large_prefix (environment_results $result)
 This function verfies that the database has the setting of large prefix enabled. More...
 
 check_sixtyfour_bits (environment_results $result)
 Check if the site is using 64 bits PHP. More...
 
 check_slasharguments (environment_results $result)
 Method used to check the usage of slasharguments config and display a warning message. More...
 
 check_tls_libraries (environment_results $result)
 Checks for up-to-date TLS libraries. More...
 
 check_unoconv_version (environment_results $result)
 Method used to check the installed unoconv version. More...
 
 check_upgrade_key ($upgradekeyhash)
 Assert the upgrade key is provided, if it is defined. More...
 
 core_tables_exist ()
 Checks if the main tables have been installed yet or not. More...
 
 external_update_descriptions ($component)
 Web service discovery function used during install and upgrade. More...
 
 external_update_services ()
 Allow plugins and subsystems to add external functions to other plugins or built-in services. More...
 
 install_core ($version, $verbose)
 Install core moodle tables and initialize. More...
 
 log_update_descriptions ($component)
 Log_display description function used during install and upgrade. More...
 
 print_upgrade_part_end ($plugin, $installation, $verbose)
 Default end upgrade callback. More...
 
 print_upgrade_part_start ($plugin, $installation, $verbose)
 Default start upgrade callback. More...
 
 print_upgrade_separator ()
 
 upgrade_block_savepoint ($result, $version, $blockname, $allowabort=true)
 
 upgrade_core ($version, $verbose)
 Upgrade moodle core. More...
 
object upgrade_finished ($continueurl=null)
 Indicates upgrade is finished. More...
 
 upgrade_finished_handler ()
 Internal function - executed if upgrade interrupted.
 
 upgrade_handle_exception ($ex, $plugin=null)
 upgrade logging functions
 
object upgrade_init_javascript ()
 Sets up JS code required for all upgrade scripts.
 
 upgrade_install_plugins (array $installable, $confirmed, $heading='', $continue=null, $return=null)
 Helper procedure/macro for installing remote plugins at admin/index.php. More...
 
 upgrade_language_pack ($lang=null)
 Try to upgrade the given language pack (or current language) More...
 
 upgrade_log ($type, $plugin, $info, $details=null, $backtrace=null)
 Adds log entry into upgrade_log table. More...
 
 upgrade_main_savepoint ($result, $version, $allowabort=true)
 
 upgrade_mod_savepoint ($result, $version, $modname, $allowabort=true)
 
 upgrade_noncore ($verbose)
 Upgrade/install other parts of moodle. More...
 
 upgrade_plugin_mnet_functions ($component)
 upgrades the mnet rpc definitions for the given component. More...
 
 upgrade_plugin_savepoint ($result, $version, $type, $plugin, $allowabort=true)
 
 upgrade_plugins ($type, $startcallback, $endcallback, $verbose)
 Upgrade plugins. More...
 
object upgrade_plugins_blocks ($startcallback, $endcallback, $verbose)
 This function finds all available blocks and install them into blocks table or do all the upgrade process if newer. More...
 
object upgrade_plugins_modules ($startcallback, $endcallback, $verbose)
 Find and check all modules and load them up or upgrade them if necessary. More...
 
 upgrade_set_timeout ($max_execution_time=300)
 
object upgrade_setup_debug ($starting)
 @global object
 
 upgrade_stale_php_files_present ()
 Detect if there are leftovers in PHP source files. More...
 
object upgrade_started ($preinstall=false)
 Marks start of upgrade, blocks any other access to site. More...
 
 upgrade_themes ()
 Build the current theme so that the user doesn't have to wait for it to build on the first page load after the install / upgrade.
 

Variables

const UPGRADE_LOG_ERROR 2
 UPGRADE_LOG_ERROR = 2.
 
const UPGRADE_LOG_NORMAL 0
 UPGRADE_LOG_NORMAL = 0.
 
const UPGRADE_LOG_NOTICE 1
 UPGRADE_LOG_NOTICE = 1.
 

Detailed Description

Various upgrade/install related functions and classes.

@subpackage upgrade

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later