/** * Returns description of external function result value. * * @return \external_function_parameters */ public static function list_user_plans_returns() { return new external_multiple_structure(plan_exporter::get_read_structure()); }
/** * Returns description of data_for_plans_page() result value. * * @return \external_description */ public static function data_for_plans_page_returns() { return new external_single_structure(array('userid' => new external_value(PARAM_INT, 'The learning plan user id'), 'plans' => new external_multiple_structure(plan_exporter::get_read_structure()), 'pluginbaseurl' => new external_value(PARAM_LOCALURL, 'Url to the tool_lp plugin folder on this Moodle site'), 'navigation' => new external_multiple_structure(new external_value(PARAM_RAW, 'HTML for a navigation item that should be on this page')), 'canreaduserevidence' => new external_value(PARAM_BOOL, 'Can the current user view the user\'s evidence'), 'canmanageuserplans' => new external_value(PARAM_BOOL, 'Can the current user manage the user\'s plans'))); }