Created
January 25, 2019 16:44
-
-
Save maietta/6ba0cfd322f40c67536950a499ea9e84 to your computer and use it in GitHub Desktop.
PHRETS 2.x: Easy way to identify methods available for any object.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$objects = $rets->Search('Property', 'RE_1', '(L_ListingID=1800394)'); | |
$test = get_class_methods($objects); | |
print_r($test); | |
// GIVES: | |
/* | |
Array | |
( | |
[0] => __construct | |
[1] => getHeaders | |
[2] => setHeaders | |
[3] => addRecord | |
[4] => keyResultsBy | |
[5] => find | |
[6] => getError | |
[7] => setError | |
[8] => getReturnedResultsCount | |
[9] => setReturnedResultsCount | |
[10] => getTotalResultsCount | |
[11] => setTotalResultsCount | |
[12] => getClass | |
[13] => setClass | |
[14] => getResource | |
[15] => setResource | |
[16] => getSession | |
[17] => setSession | |
[18] => getMetadata | |
[19] => setMetadata | |
[20] => getRestrictedIndicator | |
[21] => setRestrictedIndicator | |
[22] => getIterator | |
[23] => offsetExists | |
[24] => offsetGet | |
[25] => offsetSet | |
[26] => offsetUnset | |
[27] => count | |
[28] => first | |
[29] => last | |
[30] => isMaxRowsReached | |
[31] => setMaxRowsReached | |
[32] => lists | |
[33] => toCSV | |
[34] => toJSON | |
[35] => toArray | |
) | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment