Start instance of base class, load configuration and establish database connection. Please don't call the constructor direcly, use the singleton pattern instead.
int smartyFetchTemplateTimestamp(
int
$page_id, string
$template_type_name)
Fetches last modification timestamp of a template. The right template will be chosen using the id of the current page and the name of the template type.
Takes the page id as first argument, the name of the template type as second argument. Returns int.
Tests given template name for uniqueness. Takes the template name as
first argument and an optional template id as second argument. If the template id is given, this template won't be considered when checking for uniqueness (useful for updates). Returns boolean true if template name is unique.
Tests given template type and set combination for uniqueness. Takes the template type as
first argument and an optional template id as second argument. To crosscheck the type and set combination the sets POST are used. If the template id is given, this template won't be considered when checking for uniqueness (useful for updates). Returns boolean true if template type and set(s) combination is unique.
Updates template. Takes the template id as first argument, a field=>value array with the new template data as second argument. Returns amount of affected rows.