Source for file referencefield.php
Documentation is available at referencefield.php
* a non-editable reference object to explain a table entry
* e.g. translates the userid into the user's real name.
* @author Stuart Prescott
* @copyright Copyright Stuart Prescott
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @subpackage FormsLibrary
/** Load ancillary functions */
require_once 'inc/typeinfo.php';
require_once 'field.php';
/** uses ExampleEntries object */
require_once 'exampleentries.php';
* a non-editable reference object to explain a table entry
* @subpackage FormsLibrary
/** @var ExampleEntries list of example entries from the db */
* Create a new reference field object
* @param string $name the name of the field (db name, and html field name
* @param string $longname long name to be used in the label of the field in display
* @param string $description used in the html title or longdesc for the field
parent::Field($name, $longname, $description);
* add an extra field to the end of the formatted data
* @param string $table db table for extra field
* @param string $matchfield id/key field
* @param string $field field to return in the list of examples
* @param integer $numentries (optional) the number of entries to return
function extraInfo($table, $matchfield, $field, $numentries=
1) {
$refdata =
array('id'=>
$this->getValue());
$t .=
"<input type='hidden' name='$this->namebase$this->name' "
for ($i=
0; $i<
$cols-
2; $i++
) {
} // class ReferenceField
Documentation generated on Tue, 06 Mar 2007 10:01:56 +0000 by phpDocumentor 1.3.0