public serve ( string $database, string $table, string $format, string $request, boolean $censor = false ) : boolean |
$database |
string |
Path to the SQLite database file |
$table |
string |
Name of the database table |
$format |
string |
Format of the response where %target%,
%item%, %article%', and %link will be replaced with their
respective data |
$request |
string |
Request string including the target and an
optional suggestion of the item to fetch |
$censor |
boolean |
TRUE to integrate with the Censor plugin,
defaults to FALSE |
return |
boolean |
TRUE if the request was processed successfully, FALSE
otherwise |