| @@ 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 | ||
| @@ 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 |
|