From e7859de88f74c9963f55fd416017a0ca1c9bf64d Mon Sep 17 00:00:00 2001 From: ryanhuff Date: Sat, 10 Aug 2013 17:03:41 -0700 Subject: [PATCH] Add support for recordTypeIds param for describeLayout --- soapclient/SforceBaseClient.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/soapclient/SforceBaseClient.php b/soapclient/SforceBaseClient.php index 3ab8a71..75ee110 100644 --- a/soapclient/SforceBaseClient.php +++ b/soapclient/SforceBaseClient.php @@ -669,10 +669,12 @@ public function describeGlobal() { * @param string Type Object Type * @return DescribeLayoutResult */ - public function describeLayout($type) { + public function describeLayout($type, array $recordTypeIds=null) { $this->setHeaders("describeLayout"); $arg = new stdClass(); $arg->sObjectType = new SoapVar($type, XSD_STRING, 'string', 'http://www.w3.org/2001/XMLSchema'); + if (isset($recordTypeIds) && count($recordTypeIds)) + $arg->recordTypeIds = $recordTypeIds; return $this->sforce->describeLayout($arg)->result; }