3.19 connecttemplate

Connects to the template database.

Parameters:

$kiriwrite_dbmodule->connecttemplate(missingignore);

Usage:

$kiriwrite_dbmodule->connecttemplate(1);

missingignore
Specifies that an error should not be returned if the template database does not exist.

If the template database does not exist then the error returned should be 'TemplateDatabaseDoesNotExist' in the $error scalar.

If (when using a file-based database module) the template database has invalid permissions set then the error returned should be 'TemplateDatabaseInvalidPermissionsSet' in the $error scalar.

If a database error occurs while connecting to the template database, the error returned should be 'TemplateDatabaseError' in the $error scalar and the information about the error should be placed in the $errorext scalar.