public static function show($params) { $name = $params->get('name'); try { $result = Jobs::show($name); } catch (Exception $e) { throw new RpcException($e->getMessage(), -31001); } return $result; }
private function show($name, $extensive) { try { $jobs = SourceJobs::show($name); } catch (DatabaseException $de) { throw $de; } catch (Exception $e) { throw $e; } if ($extensive) { return self::jobs_extensive($this->color, $jobs); } else { return self::jobs_brief($this->color, $jobs); } }