public function show($text, $raw = false, $type = 'info') { if ($type == 'success') { $this->result->showSuccess($text, $raw); } elseif ($type == 'info') { $this->result->showInfo($text, $raw); } elseif ($type == 'warning') { $this->result->showWarning($text, $raw); } elseif ($type == 'error') { $this->result->showError($text, $raw); } }
public function parseError($code, $data = null) { $response = new WebConsoleResponse(); $response->showError('An unknown error has occurred.'); $this->_showResponse($response); }