private function debug() { if (false === $this->_debug_mode) { return $this; } $this->_info = is_array($this->_info) ? implode("\n", $this->_info) : $this->_info; dump($this->_result, $this->_info, $this->_error_code, $this->_error_msg); return $this; echo cli_message("\r\n DEBUG DUMP\n\r\n \t\t----------------------\r\n \t\t\t Result = {$this->_result} \n\r\n \t\t\t Result Info = {$this->_info} \n\r\n \t\t\t Error Code = {$this->_error_code} \n\r\n \t\t\t Error Message = {$this->_error_msg} \n\r\n\r\n "); return $this; }
function time_end($start_time = null) { $mtime = microtime(); $mtime = explode(" ", $mtime); $mtime = $mtime[1] + $mtime[0]; $endtime = $mtime; $totaltime = $endtime - $start_time; echo cli_message("This script has run for {$totaltime} seconds.\nAll Hail your overlord and master teh great 1337 Dankness(or I'll show u my pimphand biatch!)"); }