@@ 59-70 (lines=12) @@ | ||
56 | * @return array |
|
57 | * @throws \Exception |
|
58 | */ |
|
59 | public function get($action, $alt = "xml") |
|
60 | { |
|
61 | if (array_key_exists($action, $this->actions)) { |
|
62 | if (!in_array($alt, $this->actions[$action])) { |
|
63 | throw new \Exception("Invalid Format: ". $alt); |
|
64 | } |
|
65 | $response = $this->client->get('/execution/'.$this->name. '/' .$action, $alt); |
|
66 | return $response; |
|
67 | } else { |
|
68 | throw new \Exception("Action invalid."); |
|
69 | } |
|
70 | } |
|
71 | } |
|
72 |
@@ 76-87 (lines=12) @@ | ||
73 | * @return array |
|
74 | * @throws \Exception |
|
75 | */ |
|
76 | public function get($action, $alt = "xml") |
|
77 | { |
|
78 | if (array_key_exists($action, $this->actions)) { |
|
79 | if (!in_array($alt, $this->actions[$action])) { |
|
80 | throw new \Exception("Invalid Format: ". $alt); |
|
81 | } |
|
82 | $response = $this->client->get('/project/'.$this->name. '/' .$action, $alt); |
|
83 | return $response; |
|
84 | } else { |
|
85 | throw new \Exception("Action invalid."); |
|
86 | } |
|
87 | } |
|
88 | ||
89 | /** |
|
90 | * Get project resource |
@@ 60-71 (lines=12) @@ | ||
57 | * @return array |
|
58 | * @throws \Exception |
|
59 | */ |
|
60 | public function get($action, $alt = "xml") |
|
61 | { |
|
62 | if (array_key_exists($action, $this->actions)) { |
|
63 | if (!in_array($alt, $this->actions[$action])) { |
|
64 | throw new \Exception("Invalid Format: ". $alt); |
|
65 | } |
|
66 | $response = $this->client->get('/job/'.$this->name. '/' .$action, $alt); |
|
67 | return $response; |
|
68 | } else { |
|
69 | throw new \Exception("Action invalid."); |
|
70 | } |
|
71 | } |
|
72 | } |
|
73 |