/** * When Called it perform the controller action to retrieve/manipulate data * * @return mixed */ function doAction() { try { $this->streamFilePointer = $this->tmxHandler->downloadTMX(); } catch (Exception $e) { $r = "<pre>"; $r .= print_r("User Email: " . $this->userMail, true); $r .= print_r("User ID: " . $this->uid, true); $r .= print_r($e->getMessage(), true); $r .= print_r($e->getTraceAsString(), true); $r .= "\n\n"; $r .= " - REQUEST URI: " . print_r(@$_SERVER['REQUEST_URI'], true) . "\n"; $r .= " - REQUEST Message: " . print_r($_REQUEST, true) . "\n"; $r .= "\n\n\n"; $r .= "</pre>"; Log::$fileName = 'php_errors.txt'; Log::doLog($r); Utils::sendErrMailReport($r, "Download TMX Error: " . $e->getMessage()); $this->unlockToken(); echo $e->getMessage(); exit; } }