/** * Prints human readable context identifier. * * @deprecated since 2.2 * @param context $context the context. * @param boolean $withprefix whether to prefix the name of the context with the * type of context, e.g. User, Course, Forum, etc. * @param boolean $short whether to user the short name of the thing. Only applies * to course contexts * @return string the human readable context name. */ function print_context_name(context $context, $withprefix = true, $short = false) { return $context->get_context_name($withprefix, $short); }
/** * Prints human readable context identifier. * * @deprecated since 2.2 * @see context::get_context_name() * @param context $context the context. * @param boolean $withprefix whether to prefix the name of the context with the * type of context, e.g. User, Course, Forum, etc. * @param boolean $short whether to user the short name of the thing. Only applies * to course contexts * @return string the human readable context name. */ function print_context_name(context $context, $withprefix = true, $short = false) { debugging('print_context_name() is deprecated, please use $context->get_context_name() instead.', DEBUG_DEVELOPER); return $context->get_context_name($withprefix, $short); }