ZoneMi...igData(3pm)

πŸ“¦
version 1.36.37 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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

  1. the configuration held in the database corresponds with the most recent definitions, and
  2. 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 :data tag will export the various configuration data structures
  • the :functions tag will export the helper functions
  • the :all tag will export all above symbols

pick your fighter 🫢


🌟 SEE ALSO 🌟

http://www.zoneminder.com


πŸ‘‘ AUTHOR πŸ‘‘

Philip Coombes, <philip.coombes@zoneminder.com>


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