diff --git a/soapclient/SforceBaseClient.php b/soapclient/SforceBaseClient.php index 71174bc..e00f4fd 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; }