From 54bcff73d046f149cac4ecc4068430161b777269 Mon Sep 17 00:00:00 2001 From: vargenau Date: Fri, 29 May 2009 10:58:02 +0000 Subject: [PATCH] Add getDescription function git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@6822 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/PasswordReset.php | 6 +++++- lib/plugin/RecentChanges.php | 6 ++++-- lib/plugin/RecentComments.php | 6 ++++++ lib/plugin/RecentEdits.php | 6 +++++- lib/plugin/RecentReferrers.php | 4 ++++ lib/plugin/RelatedChanges.php | 4 ++++ lib/plugin/UserPreferences.php | 4 ++++ lib/plugin/WatchPage.php | 4 ++++ lib/plugin/WikiForm.php | 4 ++++ 9 files changed, 40 insertions(+), 4 deletions(-) diff --git a/lib/plugin/PasswordReset.php b/lib/plugin/PasswordReset.php index b657a25d3..6777aca57 100644 --- a/lib/plugin/PasswordReset.php +++ b/lib/plugin/PasswordReset.php @@ -28,7 +28,7 @@ rcs_id('$Id$'); * => "No email stored for user %s. * You need to ask an Administrator to reset this password." * Problem: How to contact Admin? Present a link to ADMIN_USER - + * * If no email exists but is not verified, * => "Warning: This users email address is unverified!" * @@ -42,6 +42,10 @@ extends WikiPlugin return _("PasswordReset"); } + function getDescription () { + return _("Allow admin to reset any users password, allow user to request his password by e-mail."); + } + function getVersion() { return preg_replace("/[Revision: $]/", '', "\$Revision$"); diff --git a/lib/plugin/RecentChanges.php b/lib/plugin/RecentChanges.php index e8df3f354..4ec403ed5 100644 --- a/lib/plugin/RecentChanges.php +++ b/lib/plugin/RecentChanges.php @@ -23,8 +23,6 @@ rcs_id('$Id$'); include_once("lib/WikiPlugin.php"); -/** - */ class _RecentChanges_Formatter { var $_absurls = false; @@ -1144,6 +1142,10 @@ extends WikiPlugin return _("RecentChanges"); } + function getDescription () { + return _("List all recent changes in this wiki."); + } + function getVersion() { return preg_replace("/[Revision: $]/", '', "\$Revision$"); diff --git a/lib/plugin/RecentComments.php b/lib/plugin/RecentComments.php index c48b77eee..558d0e383 100644 --- a/lib/plugin/RecentComments.php +++ b/lib/plugin/RecentComments.php @@ -16,10 +16,16 @@ extends WikiPlugin_RecentChanges function getName () { return _("RecentComments"); } + + function getDescription () { + return _("List basepages with recently added comments."); + } + function getVersion() { return preg_replace("/[Revision: $]/", '', "\$Revision$"); } + function getDefaultArguments() { //php-4.0.4pl1 breaks at the parent:: line even if the // code doesn't reach this line diff --git a/lib/plugin/RecentEdits.php b/lib/plugin/RecentEdits.php index 099a47891..c2f277cf0 100644 --- a/lib/plugin/RecentEdits.php +++ b/lib/plugin/RecentEdits.php @@ -10,6 +10,10 @@ extends WikiPlugin_RecentChanges return _("RecentEdits"); } + function getDescription () { + return _("List all recent edits in this wiki."); + } + function getVersion() { return preg_replace("/[Revision: $]/", '', "\$Revision$"); @@ -48,4 +52,4 @@ extends WikiPlugin_RecentChanges // c-hanging-comment-ender-p: nil // indent-tabs-mode: nil // End: -?> \ No newline at end of file +?> diff --git a/lib/plugin/RecentReferrers.php b/lib/plugin/RecentReferrers.php index ea351db2d..4e49258f3 100644 --- a/lib/plugin/RecentReferrers.php +++ b/lib/plugin/RecentReferrers.php @@ -14,6 +14,10 @@ class WikiPlugin_RecentReferrers extends WikiPlugin return _("RecentReferrers"); } + function getDescription () { + return _("Analyse access log."); + } + function getVersion() { return preg_replace("/[Revision: $]/", '', "\$Revision$"); diff --git a/lib/plugin/RelatedChanges.php b/lib/plugin/RelatedChanges.php index 05a71c101..b95506e4e 100644 --- a/lib/plugin/RelatedChanges.php +++ b/lib/plugin/RelatedChanges.php @@ -27,6 +27,10 @@ extends WikiPlugin_RecentChanges return _("RecentEdits"); } + function getDescription () { + return _("List of changes on all pages which are linked to from this page."); + } + function getVersion() { return preg_replace("/[Revision: $]/", '', "\$Revision$"); diff --git a/lib/plugin/UserPreferences.php b/lib/plugin/UserPreferences.php index e4dd96dae..842439386 100644 --- a/lib/plugin/UserPreferences.php +++ b/lib/plugin/UserPreferences.php @@ -38,6 +38,10 @@ extends WikiPlugin return _("UserPreferences"); } + function getDescription () { + return _("Allow any user to adjust his own preferences."); + } + function getVersion() { return preg_replace("/[Revision: $]/", '', "\$Revision$"); diff --git a/lib/plugin/WatchPage.php b/lib/plugin/WatchPage.php index 441c499b4..c55057ca4 100644 --- a/lib/plugin/WatchPage.php +++ b/lib/plugin/WatchPage.php @@ -36,6 +36,10 @@ extends WikiPlugin return _("WatchPage"); } + function getDescription () { + return _("Manage notifications emails per page."); + } + function getVersion() { return preg_replace("/[Revision: $]/", '', "\$Revision$"); diff --git a/lib/plugin/WikiForm.php b/lib/plugin/WikiForm.php index a4a97eef8..6f6457193 100644 --- a/lib/plugin/WikiForm.php +++ b/lib/plugin/WikiForm.php @@ -34,6 +34,10 @@ extends WikiPlugin return _("WikiForm"); } + function getDescription () { + return _("Provide generic WikiForm input buttons"); + } + function getVersion() { return preg_replace("/[Revision: $]/", '', "\$Revision$"); -- 2.45.0