Create a new ExampleEntries object
ExampleEntries
ExampleEntries
(string $source, string $table, string $columnmatch, string $columnreturn, [string $maxentries = 3], [string $order = ''])
-
string
$source: see $this->source
-
string
$table: see $this->table
-
string
$columnmatch: see $this->columnmatch
-
string
$columnreturn: see $this->columnreturn
-
string
$maxentries: (optional, default 3 entries) see $this->limit
-
string
$order: (optional, use $columnreturn by default) see $this->order
Obtain the example entries from the db
void
fill
(string $id)
-
string
$id: the id number (or string) to match
Obtain the example entries and format them as appropriate
string
format
( &$data, array $data)
-
array
$data: $data[$this->source] contains the id for which we should find examples (passed by ref for efficiency only)
-
&$data