FamilyTree getTempleJSON.php
James Cobban edited this page Mar 27, 2020
·
1 revision
Up: Family Tree Implementation
This script is invoked from JavaScript, in particular the Location services function templeChanged
to search the database for instances of class Temple
that match a request. It returns a JavaScript Object Notation (JSON) document containing the content of the matching objects.
This script is invoked with parameters which are use to restrict the response. If no parameters are specified it returns the first 40 entries in the table of Temples. Parameters (passed by method='GET'):
parameter | description |
---|---|
'limit' | specify the maximum number of records to return, default 40 |
'name' | specifies to search for Temples whose temple name starts with the specified string. |
This information is also available with slightly different parameters and results using getRecordJson.php.