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

Commit

Permalink
Add support for recordTypeIds param for describeLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhuff committed Aug 11, 2013
1 parent 329d109 commit e7859de
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 e7859de

Please sign in to comment.