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 |
---|
string
text to be displayed
string
url to link to
array
url parameters (array with key pairs : param_name => param_value)
bool
create link or not (optional, default = true)
bool
show caption or nothing (optional, default = true)
string
html linkFormaid_error(string $message) : void
Message will be printed when debugmode is enabled in config file.
string
error message
readConfig() : array
todo | create Config class, replacing this function |
---|
array
Array with config settingssetupDbConn() : resource
todo | turn database class into a singleton, replacing this function |
---|
resource
Database handle