@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | public function getRecorder($recorderName) |
| 100 | 100 | { |
| 101 | - $this->restURI = $this->restURI . "/" . $recorderName; |
|
| 101 | + $this->restURI = $this->restURI . "/" . $recorderName; |
|
| 102 | 102 | $this->setNoParams(); |
| 103 | 103 | |
| 104 | 104 | return $this->sendRequest($this->preparePropertiesForRequest(self::class), [], self::VERB_GET); |
@@ -106,13 +106,13 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | public function getDefaultParams($recorderName) |
| 108 | 108 | { |
| 109 | - $this->restURI = $this->restURI . "/" . $recorderName . "/default"; |
|
| 109 | + $this->restURI = $this->restURI . "/" . $recorderName . "/default"; |
|
| 110 | 110 | $this->setNoParams(); |
| 111 | 111 | |
| 112 | 112 | return $this->sendRequest($this->preparePropertiesForRequest(self::class), [], self::VERB_GET); |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | - public function stop($recorderName) |
|
| 115 | + public function stop($recorderName) |
|
| 116 | 116 | { |
| 117 | 117 | $this->restURI = $this->restURI . "/" . $recorderName . "/actions/stopRecording"; |
| 118 | 118 | $this->setNoParams(); |
@@ -100,19 +100,19 @@ |
||
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | public function updateAdvanced( |
| 103 | - Entities\Application\AdvancedSettings $advancedSettings = null, |
|
| 104 | - Entities\Application\Modules $modules = null |
|
| 105 | - ) { |
|
| 106 | - $this->restURI = $this->getHost() . "/servers/" . $this->getServerInstance() . "/vhosts/" . $this->getVHostInstance() . "/applications/{$this->name}"; |
|
| 107 | - |
|
| 108 | - $entities = $this->getEntites(null, $this->restURI); |
|
| 109 | - $props = new \stdClass(); |
|
| 110 | - $props->advancedSettings = $advancedSettings->advancedSettings; |
|
| 111 | - $props->modules = $modules->moduleList; |
|
| 112 | - $props->restURI = $this->restURI . "/adv"; |
|
| 113 | - |
|
| 114 | - return $this->sendRequest($props, $entities, self::VERB_PUT); |
|
| 115 | - } |
|
| 103 | + Entities\Application\AdvancedSettings $advancedSettings = null, |
|
| 104 | + Entities\Application\Modules $modules = null |
|
| 105 | + ) { |
|
| 106 | + $this->restURI = $this->getHost() . "/servers/" . $this->getServerInstance() . "/vhosts/" . $this->getVHostInstance() . "/applications/{$this->name}"; |
|
| 107 | + |
|
| 108 | + $entities = $this->getEntites(null, $this->restURI); |
|
| 109 | + $props = new \stdClass(); |
|
| 110 | + $props->advancedSettings = $advancedSettings->advancedSettings; |
|
| 111 | + $props->modules = $modules->moduleList; |
|
| 112 | + $props->restURI = $this->restURI . "/adv"; |
|
| 113 | + |
|
| 114 | + return $this->sendRequest($props, $entities, self::VERB_PUT); |
|
| 115 | + } |
|
| 116 | 116 | |
| 117 | 117 | public function remove() |
| 118 | 118 | { |