internal package
Foswiki::Configure::Checker
On this page:
- internal package Foswiki::Configure::Checker; is a Foswiki::Configure::UI
- ObjectMethod check($value) → $html
- PROTECTED ObjectMethod guessed($status) -> $html
- ObjectMethod getCfg($name) → $expanded_val
- PROTECTED ObjectMethod warnAboutWindowsBackSlashes($path) -> $html
- PROTECTED ObjectMethod guessMajorDir($cfg, $dir, $silent) -> $html
- PROTECTED ObjectMethod showExpandedValue -> $html
- PROTECTED ObjectMethod checkTreePerms($path, $perms, $filter) -> $html
- PROTECTED ObjectMethod checkCanCreateFile($path) -> $html
- PROTECTED ObjectMethod checkGnuProgram($prog) -> $html
- PROTECTED ObjectMethod checkRE($keys) -> $html
- PROTECTED ObjectMethod checkRCSProgram($prog) -> $html
internal package
Foswiki::Configure::Checker; is a
Foswiki::Configure::UI
Base class of all checkers. Checkers give checking and guessing support
for configuration values. Most of the methods of this class are intended
to be protected i.e. only available to subclasses.
ObjectMethod
check($value) → $html
- $value - Value object for the thing being checked
PROTECTED ObjectMethod guessed($status) -> $html
A checker can either check the sanity of the previously saved value, or guess a one if none exists. If the checker guesses, it should call$this->guessed(0)
(passing 1 if the guess was an error).
ObjectMethod
getCfg($name) → $expanded_val
Get the value of the named configuration var. The name is in the form
getCfg("{Validation}{ExpireKeyOnUse}")
Any embedded references to other Foswiki::cfg vars will be expanded.
PROTECTED ObjectMethod warnAboutWindowsBackSlashes($path) -> $html
Generate a warning if the supplied pathname includes windows-style path separators.PROTECTED ObjectMethod guessMajorDir($cfg, $dir, $silent) -> $html
Try and guess the path of one of the major directories, by looking relative to the absolute pathname of the dir where configure is being run.PROTECTED ObjectMethod showExpandedValue -> $html
Return the expanded value of a parameter as a note for display.PROTECTED ObjectMethod checkTreePerms($path, $perms, $filter) -> $html
Perform a recursive check of the specified path. The recursive check is limited to the configured "PathCheckLimit". This prevents excessive delay on installations with large data or pub directories. The count of files checked is available in the class method $this->{fileCount} $perms is a string of permissions to check: Basic checks:- r - File or directory is readable
- w - File or directory is writable
- x - File is executable.
- d - Directory permission matches the permissions in {RCS}{dirPermission}
- f - File permission matches the permission in {RCS}{filePermission} (FUTURE)
- p - Verify that a WebPreferences exists for each web
PROTECTED ObjectMethod checkCanCreateFile($path) -> $html
Check that the given path can be created (or, if it already exists, can be written). If the existing path is a directory, recursively check for rw permissions usingcheckTreePerms
.
Returns a message or the empty string if the check passed.