Apache::Language::DBI - DBI interface for Apache::Language


Apache-Language documentation  | view source Contained in the Apache-Language distribution.

Index


NAME

Top

Apache::Language::DBI - DBI interface for Apache::Language

SYNOPSIS

Top

 <Location /under/language/control/>
 PerlSetVar Language::DBI::Datasource  DBI:Pg:dbname=database;host=database.host
 PerlSetVar Language::DBI::Username webserver
 PerlSetVar Language::DBI::Password unguessable
 PerlSetVar Language::DBI::TableName language [default]
 Language::DBI::TableKey		key 	[column for the key]
 Language::DBI::TableLang		lang	[column for the lang]
 Language::DBI::TableValue 	value [column for the value]
 LanguageHandler Apache::Language::DBI
 </Location>

DESCRIPTION

Top

This LanguageHandler implements a per-location DBI dictionnary. It looks-up a given table for a matching language/key pair and returns the best possible match.

The configurable directives are pretty self-explanatory.

TODO

Top

Some sort of caching could be done.

SEE ALSO

Top

perl(1), Apache(3), Apache::Language(3) Apache::Language::Constants(3), and all Apache::Language::*.

SUPPORT

Top

Please send any questions or comments to the Apache modperl mailing list <modperl@apache.org> or to me at <gozer@ectoplasm.dyndns.com>

NOTES

Top

This code was made possible by :

AUTHOR

Top

Philippe M. Chiasson <gozer@ectoplasm.dyndns.com>

COPYRIGHT

Top


Apache-Language documentation  | view source Contained in the Apache-Language distribution.