. * */ class Staple_Dev { protected static $timer; /** * This function takes multiple arguments and dumps them to the source code. */ public static function Dump() { if(class_exists('Staple_Config')) { if(Staple_Config::getValue('errors', 'devmode') == 1) { $args = func_get_args(); echo "
";
				foreach($args as $dumper)
				{
					var_dump($dumper);
					echo "\n";
				}
				echo "
"; } } else { $args = func_get_args(); echo "
";
			foreach($args as $dumper)
			{
				var_dump($dumper);
				echo "\n";
			}
			echo "
"; } } /** * Starts a script timer. */ public static function StartTimer() { self::$timer = microtime(true); } /** * Stops a previously started timer. */ public static function StopTimer() { return microtime(true) - self::$timer; } public static function GetRouteInfo() { $blah = Staple_Main::getRoute(); } /*public static function ResetController(Staple_Controller $controllerRef) { //$controllerRef::__destruct(); unset($controllerRef); } public static function ResetAuth() { $auth = Staple_Auth::get(); $auth->clearAuth(); $auth::__destruct(); unset($auth); }*/ } ?>