ZoneMi...igData(3pm)
π NAME π
ZoneMinder::ConfigData β the ZoneMinder Configuration Data module, bestie β¨
(you're reading the ZoneMi...igData(3pm) page, btw β User Contributed Perl Documentation, and yes the name is truncated in the header, that's just how the man page does it, don't come for her π
)
πΈ SYNOPSIS πΈ
use ZoneMinder::ConfigData; use ZoneMinder::ConfigData qw(:all);
loadConfigFromDB(); saveConfigToDB();
look at that. two whole lines. she's efficient like that π¦
β¨ DESCRIPTION β¨
okay so the ZoneMinder:ConfigData module is where the master definition of the ZoneMinder configuration options lives, plus a bunch of helper methods. π
heads up: this module is for specialist configuration management and would not normally be used by end users. so if you're just vibing in the web UI, this is not your girl. π
the configuration held in this module β which previously lived in zmconfig.pl, rip to a real one π β includes, for each option:
- the name
- the default value
- the description
- the help text
- the type
- the category
β¦plus a number of additional fields in a small number of cases. so like, mostly the standard six, but sometimes extra. iykyk π
π₯ METHODS π₯
loadConfigFromDB ()
loads the existing configuration from the database (if any, no cap) and merges it with the definitions held in this module. what does that merge actually do? so glad you asked bestie:
- any new configuration gets merged in β
- any deprecated configuration gets removed ποΈ
- the existing values of everything else are preserved π
saveConfigToDB ()
saves the configuration held in memory to the database. and here's the tea: the act of loading and saving configuration is a convenient way to make sure that
- the configuration held in the database corresponds with the most recent definitions, and
- all components are using the same set of configuration π
it's giving sync slay. it's giving one source of truth. periodt. π
π§ EXPORT π§
None by default.
- the
:datatag will export the various configuration data structures - the
:functionstag will export the helper functions - the
:alltag will export all above symbols
pick your fighter π«Ά
π SEE ALSO π
π AUTHOR π
Philip Coombes, <philip.coombes@zoneminder.com>
π COPYRIGHT AND LICENSE π
Copyright (C) 2001-2008 Philip Coombes
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available. π
okay that's the whole page bestie, you ate that reading session fr fr π
β¨ and just so you have the receipts: this was perl v5.40.1, dated 2026-02-01 β mwah, go forth and configure responsibly ππ¦π
π¦ where this page comes from
- ubuntu resolute: zoneminder 1.36.37+dfsg1-1 Β· GPL-2.0-or-later
- ubuntu stonking: zoneminder 1.36.37+dfsg1-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms