From ddcaf8acbdcfd395cab0002e5ee663855b2f852b Mon Sep 17 00:00:00 2001 From: Brooks Boyd Date: Thu, 24 May 2012 13:45:18 -0500 Subject: [PATCH] Add overload methods to pull directly from sObject "fields" property without having to make a longer call. --- soapclient/SforceBaseClient.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/soapclient/SforceBaseClient.php b/soapclient/SforceBaseClient.php index 5ea90de..309162d 100644 --- a/soapclient/SforceBaseClient.php +++ b/soapclient/SforceBaseClient.php @@ -1114,6 +1114,9 @@ public function __construct($response=NULL) { } } } + + function __get($name) { return (isset($this->fields->$name))? $this->fields->$name : false; } + function __isset($name) { return isset($this->fields->$name); } /** * Parse the "any" string from an sObject. First strip out the sf: and then