Start instance of base class, load configuration and establish database connection. Please don't call the constructor direcly, use the singleton pattern instead.
int smartyFetchGlobalTemplateTimestamp(
string
$name)
Fetches last modification date of global template from database for usage in the smarty resource plugin. Takes the global template name as first argument.
Tests given global template name for uniqueness. Takes the global template name as first argument and an optional global template id as second argument.
If the global template id is given, this global template won't be considered when checking for uniqueness (useful for updates). Returns boolean true if global template name is unique.
int updateGlobalTemplate(
int
$id, array
$sqlData)
Updates global template. Takes the global template id as first argument, a field=>value array with the new global template data as second argument. Returns amount of affected rows.