1.40 kiriwrite_output_config

kiriwrite_output_config outputs a configuration file and is mainly used for writing an updated configuration file. All parameters in the subroutine are required.

Parameters:

kiriwrite_output_config(options);

Usage:

kiriwrite_output_config({ DatabaseDirectory => "db", OutputDirectory => "output", ImagesURIPath => "/images/kiriwrite", DateTimeFormat => "DD/MM/YY (hh:mm:ss)", SystemLanguage => "en-GB", PresentationModule => "HTML4S", TextAreaCols => 50, TextAreaRows => 10, DatabaseModule => "SQLite", DatabaseServer => "localhost", DatabasePort => "3306", DatabaseProtocol => "tcp", DatabaseSQLDatabase => "database", DatabaseUsername => "username", DatabasePassword => "password", DatabaseTablePrefix => "tableprefix" });

filename
Specifies the filename to output the configuration file to.

type
Specifies the type of XML file to output (the only available option being 'config').

options
Specifies the options to use as a hash.

Value Description
DatabaseDirectory Specifies the database directory to use.
OutputDirectory Specifies the output directory to use.
ImagesURIPath Specifies the URI path of the images directory.
DateTimeFormat Specifies the date and time format that should be used.
SystemLanguage Specifies the language that Kiriwrite will use.
PresentationModule Specifies the presentation module in Kiriwrite to use.
TextAreaCols Specifies the width of the text area.
TextAreaRows Specifies the height of the text area.
DatabaseModule Specifies the database module in Kiriwrite to use.

The following settings are for the server-based database modules:

Value Description
DatabaseServer Specifies the location of the database server.
DatabasePort Specifies the port of the database server.
DatabaseProtocol Specifies the protocol to use with the database server.
DatabaseSQLDatabase Specifies the database name to use.
DatabaseUsername Specifies the database username to use.
DatabasePasswordKeep Specifies if the current database password should be kept.
DatabasePassword Specifies the database password to use.
DatabaseTablePrefix Specifies the table prefix to use for the tables used in Kiriwrite when using a server-based database module.