コード例 #1
0
ファイル: helper.php プロジェクト: dg711/moodle
 /**
  * Render the inplace editable used to edit the step name.
  *
  * @param   step        $step       The step to edit.
  * @return  string
  */
 public static function render_stepname_inplace_editable(step $step)
 {
     $title = format_text(step::get_string_from_input($step->get_title()), FORMAT_HTML);
     return new \core\output\inplace_editable('tool_usertours', 'stepname', $step->get_id(), true, \html_writer::link($step->get_edit_link(), $title), $step->get_title());
 }