Lines Matching refs:api_response

147 …                        $api_response                  = $this->sendTableRequest($parameter_array);
148 $parameter_array['thumbnails'] = $this->findMedia($api_response);
149 …if(count($api_response['records']) == 1) { //if query resulted in one record, render as a template:
150 … $html = $this->renderRecord($parameter_array, $api_response['records'][0]);
152 $html = $this->renderTable($parameter_array, $api_response);
157 … $api_response = $this->sendRecordRequest($parameter_array);
158 $parameter_array['thumbnails'] = $this->findMedia($api_response);
159 … $html = $this->renderRecord($parameter_array, $api_response);
163 $api_response = $this->sendRecordRequest($parameter_array);
164 $thumbnails = $this->findMedia($api_response);
172 $api_response = $this->sendRecordRequest($parameter_array);
173 … $html = $this->renderText($parameter_array, $api_response);
231 function renderTable($parameter_array, $api_response): string { argument
237 foreach($api_response['records'] as $record) {
266 function renderRecord($parameter_array, $api_response): string { argument
275 … if(!array_key_exists($field, $api_response['fields'])) { //if field is not present in array:
278 if(is_array($api_response['fields'][$field])) {
284 <p>' . $this->renderAnyExternalLinks($api_response['fields'][$field]) . '</p>
336 function renderText($parameter_array, $api_response): string { argument
340 … if(!array_key_exists($field, $api_response['fields'])) { //if field is not present in array:
343 … $html .= $this->renderAnyExternalLinks(htmlspecialchars($api_response['fields'][$field])) . ' ';