Skip to content

Commit

Permalink
Merge pull request #7 from allmightyspiff/master
Browse files Browse the repository at this point in the history
add in setObjectFilter
  • Loading branch information
underscorephil committed Dec 2, 2014
2 parents fc7d8bd + 281abb3 commit fb25f1e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions SoftLayer/SoapClient.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,24 @@ public function setObjectMask($mask)
return $this;
}

/**
* Set an object filter to a SoftLayer API call
*
* Use an object filter to limit what data you get back
* from the API. Very similar to objectMasks
*
* @see SoftLayer_ObjectMask
* @param object $filter The object filter you wish to define
* @return SoftLayer_SoapClient
*/
public function setObjectFilter($objectFilter)
{
if (!is_null($objectFilter)) {
$header = sprintf('%sObjectFilter', $this->_serviceName);
$this->addHeader($header, $objectFilter);
}
return $this;
}
/**
* Set a result limit on a SoftLayer API call
*
Expand Down

0 comments on commit fb25f1e

Please sign in to comment.