| @@ 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 | ||
| @@ 31-42 (lines=12) @@ | ||
| 28 | return $response; |
|
| 29 | } |
|
| 30 | ||
| 31 | public function get($action, $alt = "xml") |
|
| 32 | { |
|
| 33 | if (array_key_exists($action, $this->actions)) { |
|
| 34 | if (!in_array($alt, $this->actions[$action])) { |
|
| 35 | throw new \Exception("Invalid Format: ". $alt); |
|
| 36 | } |
|
| 37 | $response = $this->client->get('/job/'.$this->name. '/' .$action, $alt); |
|
| 38 | return $response; |
|
| 39 | } else { |
|
| 40 | throw new \Exception("Action invalid."); |
|
| 41 | } |
|
| 42 | } |
|
| 43 | } |
|
| 44 | ||
| @@ 41-52 (lines=12) @@ | ||
| 38 | return $response; |
|
| 39 | } |
|
| 40 | ||
| 41 | public function get($action, $alt = "xml") |
|
| 42 | { |
|
| 43 | if (array_key_exists($action, $this->actions)) { |
|
| 44 | if (!in_array($alt, $this->actions[$action])) { |
|
| 45 | throw new \Exception("Invalid Format: ". $alt); |
|
| 46 | } |
|
| 47 | $response = $this->client->get('/project/'.$this->name. '/' .$action, $alt); |
|
| 48 | return $response; |
|
| 49 | } else { |
|
| 50 | throw new \Exception("Action invalid."); |
|
| 51 | } |
|
| 52 | } |
|
| 53 | ||
| 54 | public function resource($name, $alt = "xml") |
|
| 55 | { |
|