@@ 54-61 (lines=8) @@ | ||
51 | * @return \Wabel\CertainAPI\CertainRessourceAbstract |
|
52 | * @throws Exceptions\RessourceException |
|
53 | */ |
|
54 | public function get($ressourceId= null,$params= array(), $assoc = false, $contentType='json'){ |
|
55 | $ressourceName = $this->getRessourceName();; |
|
56 | if($ressourceName == '' || is_null($ressourceName)){ |
|
57 | throw new Exceptions\RessourceException('No ressource name provided.'); |
|
58 | } |
|
59 | $this->results = $this->certainApiService->get($ressourceName,$this->ressourceCalled, $ressourceId,$params, $assoc, $contentType); |
|
60 | return $this; |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * Add/Update information to certain |
|
@@ 127-134 (lines=8) @@ | ||
124 | * @return \Wabel\CertainAPI\CertainRessourceAbstract |
|
125 | * @throws Exceptions\RessourceException |
|
126 | */ |
|
127 | public function delete($ressourceId, $assoc = false, $contentType='json'){ |
|
128 | $ressourceName = $this->getRessourceName();; |
|
129 | if($ressourceName == '' || is_null($ressourceName)){ |
|
130 | throw new Exceptions\RessourceException('No ressource name provided.'); |
|
131 | } |
|
132 | $this->results = $this->certainApiService->delete($ressourceName, $this->ressourceCalled, $ressourceId, $assoc, $contentType); |
|
133 | return $this; |
|
134 | } |
|
135 | ||
136 | /** |
|
137 | * Check is a successful request |