/** * Export this data so it can be used as the context for a mustache template. * * @return stdClass */ public function export_for_template(renderer_base $output) { // "Flattens" the data $array[] = null; $data = \tool_supporter_external::get_courses(); return $data; }
/** * Export this data so it can be used as the context for a mustache template. * * @return stdClass */ public function export_for_template(renderer_base $output) { // "Flattens" the data $array[] = null; //echo "in export_for_template user_table"; $data = \tool_supporter_external::get_users(); // echo "<pre>" . print_r($data, true) . "</pre>"; return $data; }
/** * Export this data so it can be used as the context for a mustache template. * * @return stdClass */ public function export_for_template(renderer_base $output) { // "Flattens" the data //$array =[1]; $data = tool_supporter_external::get_course_info(2); echo "Data:"; print_r($data); return $data; }