Formaid_createLink(string $caption, string $url_page, array $url_params, bool $show_link, bool $show_caption) : string
A HTML link will be created if $show_link is true. If $show_link is false and : - if $show_caption is true, only the (html escaped) caption will be returned; - if show_caption is false, nothing is returned.
| deprecated | use Formaid_Link class | 
|---|
stringtext to be displayed
stringurl to link to
arrayurl parameters (array with key pairs : param_name => param_value)
boolcreate link or not (optional, default = true)
boolshow caption or nothing (optional, default = true)
stringhtml linkFormaid_error(string $message) : void
Message will be printed when debugmode is enabled in config file.
stringerror message
readConfig() : array
| todo | create Config class, replacing this function | 
|---|
arrayArray with config settingssetupDbConn() : resource
| todo | turn database class into a singleton, replacing this function | 
|---|
resourceDatabase handle