}
$totalcount = $coursecat->get_children_count();
if (!$totalcount) {
- // Note that we call get_child_categories_count() AFTER get_child_categories() to avoid extra DB requests.
+ // Note that we call coursecat::get_children_count() AFTER coursecat::get_children() to avoid extra DB requests.
// Categories count is cached during children categories retrieval.
return '';
}
// context path/depth must be valid
if (empty($context->path) or $context->depth == 0) {
// this should not happen often, each upgrade tries to rebuild the context paths
- debugging('Context id '.$context->id.' does not have valid path, please use build_context_path()');
+ debugging('Context id '.$context->id.' does not have valid path, please use context_helper::build_all_paths()');
if (is_siteadmin($userid)) {
return true;
} else {
/**
- * DDL exception class, use instead of error() and "return false;" in ddl code.
+ * DDL exception class, use instead of print_error() and "return false;" in ddl code.
*/
class ddl_exception extends moodle_exception {
/**
* $courserenderer = $PAGE->get_renderer('core', 'course');
* $output = $courserenderer->course_section_add_cm_control($course, $section, $sectionreturn,
* array('inblock' => $vertical));
- * echo $output; // if $return argument in print_section_add_menus() set to false
+ * echo $output;
*
* @deprecated since 2.5
* @see core_course_renderer::course_section_add_cm_control()
define('MUST_EXIST', 2);
/**
- * DML exception class, use instead of error() in dml code.
+ * DML exception class, use instead of print_error() in dml code.
*
* @package core
* @category dml
}
/**
- * Default exception handler, uncaught exceptions are equivalent to error() in 1.9 and earlier
+ * Default exception handler.
*
* @param Exception $ex
* @return void -does not return. Terminates execution!
/**
* @var array
- * @see coursecat::get_children()
+ * @see get_categories()
*/
var $categories;
session_get_instance()
session_is_legacy()
session_kill_all()
- session_touch($sid)
- session_kill($sid)
+ session_touch()
+ session_kill()
session_kill_user()
session_set_user()
session_is_loggedinas()
css_minify_css()
update_login_count()
reset_login_count()
+ check_gd_version()
update_log_display_entry()
get_recent_enrolments()
groups_filter_users_by_course_module_visible()
get_parent_contexts()
get_parent_contextid()
get_child_contexts()
- create_contexts(()
+ create_contexts()
cleanup_contexts()
build_context_path()
rebuild_contexts()
get_device_type_list()
get_selected_theme_for_device_type()
get_device_cfg_var_name()
+ set_user_device_type()
get_user_device_type()
get_browser_version_classes()
generate_email_supportuser()
/**
* Returns the valid choices for the number of decimal places for showing
* question marks. For use in the user interface.
- * @return array suitable for passing to {@link choose_from_menu()} or similar.
+ * @return array suitable for passing to {@link html_writer::select()} or similar.
*/
public static function get_dp_options() {
return question_display_options::get_dp_options();
* Calling code should probably use {@link question_engine::get_dp_options()}
* rather than calling this method directly.
*
- * @return array suitable for passing to {@link choose_from_menu()} or similar.
+ * @return array suitable for passing to {@link html_writer::select()} or similar.
*/
public static function get_dp_options() {
$options = array();