Brimbox Logo Brimbox Version 2.3.4 Released

document>>

Method to provide a download link for an object stored in the docs_table, either by document id or document filename.

Class: bb_main, called as $main

File: bb_main.php (php)

Declaration:

function document($object, $text = "", $class = "link spaced")

Usage:

$main->document($object, $text, $class);

Outputs: link to allow the downloading of a document from the database.

Parameter: $object (mixed)
Either the id or the filename of the document to download.

Parameter: $text (array)
The text to display for the link (or button). If blank will either be the id or filename depending on the value for $object.

Parameter: $class(boolean)
The class of the link to be outputted.

Updated: 2016-07-11