PHP Driver Files: link.php

This file provides the user with a web user-interface for setting up the address for your individual data link (the connection between a property and a data source).

The structure is very similar to that of configure-source.php.

Below is an example from the text driver.

<?php
	if (!isset($address)) $address = "";
?>
 
<tr><td><label>Lookup:</label></td><td><input type="text" name="name" value="<?php echo $address;?>"/></td></tr>

There are two distinct sections of the file.

Loading Values

First, we setup our default values. If there is already an existing address for this data link, we then replace those defaults with the values from that existing address.

Presenting the UI

Then, we present the UI to our users in an HTML table.

Each option starts with a label, followed by the input controls needed.

<tr><td><label>My Label</label></td><td>...</td></tr>

When the user saves this information, the encode.php file is called to take the various properties and copy them to a single string - the address that is sent to your Python driver in the points.