$result : \SimpleXMLElement
The full raw result.
This class handles interactions with Stored Procedure results.
More specifically, it provides a unified object used to interact with table-based results returned from various MinistryPlatform API calls.
getTableKeyValuePair(integer $key) : array
Associative array of values from a Stored Procedure Table.
When a stored procedure table returns an array of arrays, this can be helpful in retrieving only the first two fields of data as a key value pair.
For example, an array that contains a Prefix_ID and Prefix_Name would ideally provide an a value of $prefixes[Prefix_ID] => Prefix_Name. This is precisely what this method will do. Please note that it will ignore and discard any additional fields that may be in the array.
The array key of the requested stored procedure table.
A $key->$value array.