Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding doc block

  • Loading branch information...
commit 6c0235b375fbd4a6801987531443d638b9a03a2a 1 parent e10e887
@mrmark mrmark authored mudrd8mz committed
Showing with 10 additions and 0 deletions.
  1. +10 −0 backup/util/helper/convert_helper.class.php
View
10 backup/util/helper/convert_helper.class.php
@@ -57,6 +57,16 @@ public static function obj_to_readable($obj) {
return implode(", ", array_map($mapper, array_keys($fields), array_values($fields)));
}
+ /**
+ * Generate an artificial context ID
+ *
+ * @static
+ * @throws Exception
+ * @param int $instance The moodle component instance ID, same value used for get_context_instance()
+ * @param string $component The moodle component, like block_html, mod_quiz, etc
+ * @param string $converterid The converter ID
+ * @return int
+ */
public static function get_contextid($instance, $component = 'moodle', $converterid = NULL) {
global $DB;
Please sign in to comment.
Something went wrong with that request. Please try again.