diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/plugins/admin.php | 34 | ||||
-rw-r--r-- | lib/plugins/authmysql/lang/da/settings.php | 4 |
2 files changed, 28 insertions, 10 deletions
diff --git a/lib/plugins/admin.php b/lib/plugins/admin.php index d063af612..39dece453 100644 --- a/lib/plugins/admin.php +++ b/lib/plugins/admin.php @@ -15,10 +15,13 @@ if(!defined('DOKU_INC')) die(); class DokuWiki_Admin_Plugin extends DokuWiki_Plugin { /** + * Return the text that is displayed at the main admin menu + * (Default localized language string 'menu' is returned, override this function for setting another name) + * * @param string $language language code - * @return string + * @return string menu string */ - function getMenuText($language) { + public function getMenuText($language) { $menutext = $this->getLang('menu'); if (!$menutext) { $info = $this->getInfo(); @@ -28,32 +31,47 @@ class DokuWiki_Admin_Plugin extends DokuWiki_Plugin { } /** + * Determine position in list in admin window + * Lower values are sorted up + * * @return int */ - function getMenuSort() { + public function getMenuSort() { return 1000; } - - function handle() { + /** + * Carry out required processing + */ + public function handle() { trigger_error('handle() not implemented in '.get_class($this), E_USER_WARNING); } - function html() { + /** + * Output html of the admin page + */ + public function html() { trigger_error('html() not implemented in '.get_class($this), E_USER_WARNING); } /** + * Return true for access only by admins (config:superuser) or false if managers are allowed as well + * * @return bool */ - function forAdminOnly() { + public function forAdminOnly() { return true; } /** + * Return array with ToC items. Items can be created with the html_mktocitem() + * + * @see html_mktocitem() + * @see tpl_toc() + * * @return array */ - function getTOC(){ + public function getTOC(){ return array(); } } diff --git a/lib/plugins/authmysql/lang/da/settings.php b/lib/plugins/authmysql/lang/da/settings.php index 1e38cb6b4..ed21201fb 100644 --- a/lib/plugins/authmysql/lang/da/settings.php +++ b/lib/plugins/authmysql/lang/da/settings.php @@ -2,7 +2,7 @@ /** * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) - * + * * @author Jens Hyllegaard <jens.hyllegaard@gmail.com> * @author soer9648 <soer9648@eucl.dk> */ @@ -11,6 +11,7 @@ $lang['user'] = 'MySQL brugernavn'; $lang['password'] = 'Kodeord til ovenstående bruger'; $lang['database'] = 'Database der skal benyttes'; $lang['charset'] = 'Tegnsæt benyttet i database'; +$lang['debug'] = 'Vis yderligere debug output'; $lang['checkPass'] = 'SQL-sætning til at kontrollere kodeord'; $lang['getUserInfo'] = 'SQL-sætning til at hente brugerinformation'; $lang['getUsers'] = 'SQL-sætning til at liste alle brugere'; @@ -21,7 +22,6 @@ $lang['delGroup'] = 'SQL-sætning til at fjerne en gruppe'; $lang['delUser'] = 'SQL-sætning til at slette en bruger'; $lang['delUserRefs'] = 'SQL-sætning til at fjerne en bruger fra alle grupper'; $lang['updateUser'] = 'SQL-sætning til at opdatere en brugerprofil'; -$lang['debug'] = 'Vis yderligere debug output'; $lang['debug_o_0'] = 'ingen'; $lang['debug_o_1'] = 'kun ved fejl'; $lang['debug_o_2'] = 'alle SQL forespørgsler'; |