Config_tm

__construct()

8: 	function __construct() {
10: 		$this->_options = parse_ini_file(DIR_CONFIG . 'config.ini');
11:
13: 		$this->_database_options = parse_ini_file(DIR_CONFIG . 'database.ini', true);
14: 	}

File: lib/support/Config_tmp.php, #line 8

get_environment()

16: 	function get_environment() {
17: 		return $this->_options['environment'];
18: 	}

File: lib/support/Config_tmp.php, #line 16

get_translation()

20: 	function get_translation() {
21: 		return $this->_options['translations'];
22: 	}

File: lib/support/Config_tmp.php, #line 20

get_field_error_class()

24: 	function get_field_error_class() {
25: 		return $this->_options['class'];
26: 	}

File: lib/support/Config_tmp.php, #line 24

get_database_options($options)

28: 	function get_database_options($options) {
29: 		if (!array_key_exists($options, $this->_database_options) or empty ($this->_database_options[$options])) {
30: 			global $Logger;
31: 			$Logger->log('Fatal Error: Database Config options ' . $options . ' not found!');
32: 		} else {
33: 			return $this->_database_options[$options];
34: 		}
35: 	}

File: lib/support/Config_tmp.php, #line 28

get_mail_options()

37: 	function get_mail_options() {
38: 		$data = array (
39: 			'address' => '',
40: 			'port' => '',
41: 			'domain' => '',
42: 			'user' => '',
43: 			'password' => '',
44: 			'ttl' => ''
45: 		);
46: 		if (isset ($this->_options['address'])) {
47: 			$data['address'] = $this->_options['address'];
48: 		}
49: 		if (isset ($this->_options['port'])) {
50: 			$data['port'] = $this->_options['port'];
51: 		}
52: 		if (isset ($this->_options['domain'])) {
53: 			$data['domain'] = $this->_options['domain'];
54: 		}
55: 		if (isset ($this->_options['user_name'])) {
56: 			$data['user'] = $this->_options['user_name'];
57: 		}
58: 		if (isset ($this->_options['password'])) {
59: 			$data['password'] = $this->_options['password'];
60: 		}
61: 		if (isset ($this->_options['ttl'])) {
62: 			$data['ttl'] = $this->_options['ttl'];
63: 		}
64:
65: 		return $data;
66: 	}

File: lib/support/Config_tmp.php, #line 37

get_mysql_adapter()

68: 	function get_mysql_adapter() {
69: 		return ucwords('mysql');
70: 	}

File: lib/support/Config_tmp.php, #line 68

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>