Exemple #1
0
 /**
  * Generate the LTI2 column.
  *
  * @param \stdClass $tool instance data.
  * @return string
  */
 public function col_lti2($tool)
 {
     global $OUTPUT;
     $url = helper::get_proxy_url($tool);
     $toolurllabel = get_string('toolurl', 'enrol_lti');
     $toolurl = $url;
     $data = ["rows" => [["label" => $toolurllabel, "text" => $toolurl, "id" => "toolurl"]]];
     $return = $OUTPUT->render_from_template("enrol_lti/copy_grid", $data);
     return $return;
 }
Exemple #2
0
 /**
  * Generate the proxy URL column.
  *
  * @param \stdClass $tool event data.
  * @return string
  */
 public function col_proxy_url($tool)
 {
     $url = helper::get_proxy_url($tool);
     return $this->get_copyable_text($tool, $url);
 }