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

Commit

Permalink
Add overload methods to pull directly from sObject "fields" property …
Browse files Browse the repository at this point in the history
…without having to make a longer call.
  • Loading branch information
MidnightLightning committed May 24, 2012
1 parent 2b867de commit ddcaf8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions soapclient/SforceBaseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ddcaf8a

Please sign in to comment.