@access public @throws Exception object @return void */ public function __construct() { try { self::switch_database(); } catch (Exception $e) { throw $e; }
/** This method gets the requested node from the Configuration static array @access public @throws Exception object @param String $node @static @return string */ public static function config($node) { try { $optionsArr = explode("->", $node); $result = null; $strArrKey = ""; $arrConfig = self::$Configuration; foreach ($optionsArr as $key1 => $value1) { $strArrKey .= "['" . strtolower($value1) . "']"; } $value = eval('return (isset($arrConfig' . $strArrKey . ') == true) ? $arrConfig' . $strArrKey . ' : null;'); //Check if value is a boolean if (is_string($value) && Utility::check_bool($value)) { $value = filter_var($value, FILTER_VALIDATE_BOOLEAN); } return $value; } catch (Exception $e) { throw $e; } }