internal package
Foswiki::Configure::Dependency ClassMethod
new( %opts ) name => unqualified name e.g. SafeWikiPlugin
module => qualified module e.g Foswiki::Plugins::SafeWikiPlugin
module
is not provided, all possible Foswiki/TWiki module types are searched for type=perl
type => perl|cpan|external
perl
is a Foswiki or TWiki module. external
is used for any program other than a perl module. External dependencies are not checked.
version => version condition e.g. ">1.2.3"
trigger => ONLYIF condition
(Specifies a version of another module, such as the Foswiki Func API)
description => text
installed => True if module is installed
installedVersion => $VERSION string from module
installedRelease => $RELEASE string from module (or $VERSION)
notes => text Notes on condition of module
(ex. fails due to missing dependency)
ObjectMethod
check() → ($ok, $msg) ObjectMethod
studyInstallation() {installedRelease}
and {installedVersion}
fields, and returning true if the extension is installed.
{notes}
will also be set when certain conditions are discovered (example: missing dependencies or other compile failures).
ObjectMethod
compare_versions ($condition, $release) StaticMethod
extractModuleVersion ($moduleName, $magic) → ($moduleFound, $moduleVersion, $modulePath) StaticMethod
checkPerlModules(@mods) installedVersion
- the version installed (or 'Unknown version'
or 'Not installed')
The result of the check is written to the check_result
field.
![]() |
© 2025 D.Soost & D.Marxsen - All rights reserved © Of all articles by authors Trademarks are the property of their respective owners © Logo by Wikipedia, modified by Administrator | Impressum Disclaimer Datenschutzerklärung |