Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://wiki.cs.msu.ru/System/PerlDoc?module=Foswiki::Configure::UI
Дата изменения: Unknown Дата индексирования: Mon Apr 11 11:33:08 2016 Кодировка: koi8-r |
internal package
Foswiki::Configure::UI internal package
Foswiki::Configure::UI This is both the factory for UIs and the base class of all UI objects. A UI is the V part of the MVC model used in configure.
Each structural entity in a configure screen has a UI type, either stored directly in the entity or indirectly in the type associated with a value. The UI type is used to guide a visitor which is run over the structure to generate the UI.
ClassMethod
new($item) StaticMethod
reset($isFirstTime) configure
script, this method resets the total
error and warning counts. This method is provided primarily for testing
support.
ObjectMethod
findRepositories() ObjectMethod
getRepository($name) → \%repository StaticMethod
loadUI($id, $item) → $ui $item is passed on to the constructor for the UI.
StaticMethod
loadChecker($id, $item) → $checker If the id doesn't have a subclass defined, the item's type class may define a generic checker for that type. If so, it is instantiated for this item.
Returns the checker created or undef if no such checker is found.
Will die if the checker exists but fails to compile.
$item is passed on to the checker's constructor.
ObjectMethod
getUrl() → $response ObjectMethod
setting(...) → $html ObjectMethod
makeID($id) → $encodedID Encode a string to make a simplified unique ID useable as an HTML id or anchor
ObjectMethod
NOTE(...) Generate HTML for an informational note.
ObjectMethod
NOTE_OK(...) Generate HTML for a note, but with the class configureOK
ObjectMethod
WARN(...) Generate HTML for a warning, and flag it in the model.
ObjectMethod
ERROR(...) Generate HTML for an error, and flag it in the model.
ObjectMethod
hidden($value) → $html ObjectMethod
urlEncode($data) → $encodedData StaticMethod
authorised () → ($isAuthorized, $messageType) Invoked to confirm authorisation, and handle password changes. The password is changed in $Foswiki::cfg, a change which is then detected and written when the configuration file is actually saved.