From e2f8d5e46ea3aba1f6f9621a74e3e80cb6ba8359 Mon Sep 17 00:00:00 2001 From: aqwsez Date: Mon, 25 May 2015 14:22:31 +0200 Subject: [PATCH] Update SforceMetadataClient.php Added 'Deploy zip file' option --- soapclient/SforceMetadataClient.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/soapclient/SforceMetadataClient.php b/soapclient/SforceMetadataClient.php index 7477d72..26454e4 100644 --- a/soapclient/SforceMetadataClient.php +++ b/soapclient/SforceMetadataClient.php @@ -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; + } + } }