Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Deprecated functions in 2.0

From MoodleDocs
Revision as of 03:27, 5 August 2009 by Nicolas Connault (talk | contribs) (First draft)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: This page is a work-in-progress. Feedback and suggested improvements are welcome. Please join the discussion on moodle.org or use the page comments.

Moodle 2.0


This page lists the old HTML-outputting functions of pre-2.0 lib/weblib.php and their 2.0 equivalents using $OUTPUT functions.

General notes

The principle of the new rendering API is to let the developer build metadata-rich components that represent HTML elements, but may be rendered in many different ways. A menu component, for example, could be rendered as a <select> element, or as a list of radio buttons or check boxes.

The following functions have been arranged in alphabetical order, although some of them are very closely related to each other.

Functions to migrate

button_to_popup_window

choose_from_menu

choose_from_menu_nested

choose_from_menu_yesno

choose_from_radio

close_window_button

continue

doc_link

helpbutton

link_to_popup_window

notice_yesno

notify

page_doc_link

popup_form

print_arrow

print_box*

print_checkbox

print_container*

print_date_selector

print_footer

print_header

print_header_with_help

print_heading

print_heading_block

print_headline

print_paging_bar

print_scale_menu_helpbutton

print_side_block

print_single_button

print_spacer

print_table

print_textarea

print_textfield

print_time_selector

print_user_picture

update_course_button

update_module_button

update_tag_button

Non-supported functions

These functions have been completely dropped in 2.0, most likely because they were used very little or not at all. All calls to these functions in core should have been replaced.

blocks_print_group

print_file_picture

print_png

print_scale_menu

print_side_block_end

print_side_block_start

print_timer_selector

print_user

update_categories_search_button

update_mymoodle_icon