コード例 #1
0
 public static function getInstance()
 {
     if (self::$instance == null) {
         self::$instance = new DeployRHttpTransport();
     }
     return self::$instance;
 }
コード例 #2
0
 public function save(DeployRRObject $robject, $descr)
 {
     $content = $this->getDefaultContent();
     $content .= "&name=" . urlencode($robject->getName());
     $content .= "&descr=" . urlencode($descr);
     return $this->responseParser->parseSave(DeployRHttpTransport::getInstance()->send($this->serverUrl . '/r/session/object/save', 'POST', $this->getHeader(), $content), $robject->getName(), $descr);
 }
コード例 #3
0
 public function getScripts()
 {
     return $this->responseParser->parseGetScripts(DeployRHttpTransport::getInstance()->send($this->serverUrl . '/r/script/list', 'POST', $this->getHeader(), $this->getDefaultContent()));
 }
コード例 #4
0
 public function delete($id)
 {
     $content = $this->getDefaultContent();
     $content .= "&id=" . $id;
     $this->responseParser->parseDelete(DeployRHttpTransport::getInstance()->send($this->serverUrl . '/r/repository/object/delete', 'POST', $this->getHeader(), $content));
 }
コード例 #5
0
 public function autoSave()
 {
     return $this->responseParser->parseAutoSave(DeployRHttpTransport::getInstance()->send($this->serverUrl . '/r/user/autosave', 'POST', $this->getHeader(), $this->getDefaultContent()));
 }
コード例 #6
0
 public function saveWorkspace($descr)
 {
     $content = $this->getDefaultContent();
     $content .= "&descr=" . urlencode($descr);
     return $this->responseParser->parseSaveWorkspace(DeployRHttpTransport::getInstance()->send($this->serverUrl . '/r/session/workspace/save', 'POST', $this->getHeader(), $content), $descr);
 }