Skip to content
Permalink
Browse files

Adding doc block

  • Loading branch information...
polothy authored and mudrd8mz committed Mar 14, 2011
1 parent e10e887 commit 6c0235b375fbd4a6801987531443d638b9a03a2a
Showing with 10 additions and 0 deletions.
  1. +10 −0 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;

0 comments on commit 6c0235b

Please sign in to comment.
You can’t perform that action at this time.