Skip to content

Commit

Permalink
Adding doc block
Browse files Browse the repository at this point in the history
  • Loading branch information
polothy authored and mudrd8mz committed May 10, 2011
1 parent e10e887 commit 6c0235b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions backup/util/helper/convert_helper.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6c0235b

Please sign in to comment.