Skip to content

Commit 9bbe851

Browse files
added setObjectFilter
1 parent 8f49115 commit 9bbe851

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

SoftLayer/SoapClient.class.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ public function __call($functionName, $arguments = null)
204204

205205
try {
206206
$result = parent::__call($functionName, $arguments, null, $this->_headers, null);
207+
// print_r($this->_headers);
207208
} catch (SoapFault $e) {
208209
throw new Exception('There was an error querying the SoftLayer API: ' . $e->getMessage());
209210
}
@@ -402,6 +403,18 @@ public function setObjectMask($mask)
402403
return $this;
403404
}
404405

406+
407+
public function setObjectFilter($objectFilter)
408+
{
409+
if (!is_null($objectFilter)) {
410+
411+
$header = sprintf('%sObjectFilter', $this->_serviceName);
412+
413+
$this->addHeader($header, $objectFilter);
414+
}
415+
416+
return $this;
417+
}
405418
/**
406419
* Set a result limit on a SoftLayer API call
407420
*

0 commit comments

Comments
 (0)