You are here

function Config_File::get_key in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 includes/moodle/lib/smarty/Config_File.class.php \Config_File::get_key()

Retrieves config info based on the key.

@uses get() retrieves information from config file and returns it

Parameters

$file_name string config key (filename/section/var):

Return value

string|array same as get()

File

includes/moodle/lib/smarty/Config_File.class.php, line 147

Class

Config_File
Config file reading class @package Smarty

Code

function &get_key($config_key) {
  list($file_name, $section_name, $var_name) = explode('/', $config_key, 3);
  $result =& $this
    ->get($file_name, $section_name, $var_name);
  return $result;
}