ZoneMin...figData(3)

πŸ“¦ version 1.38.6, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

This is ZoneMinder::ConfigData, aka the ZoneMinder Configuration Data module β€” currently vibing as ZoneMin...figData(3) in User Contributed Perl Documentation. It’s the config-data main character, and it knows it πŸ‘‘.

✨ SYNOPSIS ✨

use ZoneMinder::ConfigData; use ZoneMinder::ConfigData qw(:all);

loadConfigFromDB(); saveConfigToDB();

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so the ZoneMinder:ConfigData module is literally the master definition of the ZoneMinder configuration options, plus helper methods. It’s built for specialist configuration management, bestie β€” it would not normally be used by end users, so don’t just hand it the aux cord at a random party 🎧.

The configuration held in this module β€” which was previously in zmconfig.pl β€” includes the name, default value, description, help text, type and category for each option, as well as a number of additional fields in a small number of cases. It’s giving very organized spreadsheet energy, but make it Perl 🧚✨.

🌸 METHODS 🌸

πŸŽ€ loadConfigFromDB ();

Loads existing configuration from the database (if any) and merges it with the definitions held in this module. This results in the merging of any new configuration and the removal of any deprecated configuration while preserving the existing values of everything else. So it’s like a config glow-up that keeps the good bits πŸ’….

πŸŽ€ saveConfigToDB ();

Saves configuration held in memory to the database. The act of loading and saving configuration is a convenient way to ensure that the configuration held in the database corresponds with the most recent definitions and that all components are using the same set of configuration. Consistency slay πŸ”₯.

🫢 EXPORT 🫢

None by default, no cap.

  • :data β€” will export the various configuration data structures.
  • :functions β€” will export the helper functions.
  • :all β€” will export all above symbols.

πŸ”₯ 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.

That’s the whole page, bestie 🫢 β€” rendered by perl v5.42.3 and stamped 1980-01-01, filed under ZoneMin...figData(3). Byeee πŸ’…βœ¨

πŸ“¦ where this page comes from