Skip to content

Commit

Permalink
Merge Update SforceMetadataClient.php to add 'Deploy zip file' resour…
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbauman committed Dec 10, 2018
1 parent 33239e1 commit 1719344
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion soapclient/SforceMetadataClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,17 @@ public function getLastResponseHeaders() {
return $this->sforce->__getLastResponseHeaders();
}


public function deploy($zipFile, $deployOptions) {
$request = new stdClass();
$request->ZipFile = $zipFile;
$request->DeployOptions = $deployOptions;
$response = $this->sforce->__soapCall("deploy", array($request));
if (isset($response->result)) {
return $response->result;
} else {
return null;
}
}
}


Expand Down

0 comments on commit 1719344

Please sign in to comment.