Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #27 from cirruspath/master
Browse files Browse the repository at this point in the history
Add support for recordTypeIds param for describeLayout
  • Loading branch information
Pat Patterson committed Aug 30, 2013
2 parents c6a6e05 + e7859de commit 00cde8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion soapclient/SforceBaseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 00cde8d

Please sign in to comment.