You are here

function context_to_string_translator::string_to_context in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/lib/questionlib.php \context_to_string_translator::string_to_context()

File

includes/moodle/lib/questionlib.php, line 2140

Class

context_to_string_translator

Code

function string_to_context($contextname) {
  $contextid = array_search($contextname, $this->contexttostringarray);
  return $contextid;
}