deprecate $PAGE->get_format_name (use $PAGE->pagetype) deprecate page_id_and_class (use $PAGE->pagetype)