Added more comments to helper code

This commit is contained in:
Simon DELAGE 2015-03-26 08:37:54 +01:00
parent ba8739a2b5
commit 0fef945468
2 changed files with 7 additions and 2 deletions

View file

@ -33,6 +33,8 @@ class helper_plugin_userhomepage extends DokuWiki_Plugin {
}
}
// Returns a link to current user's private namespace start page (even if it doesn't exist)
// If @param == "loggedinas", the link will be wraped in an <li> element
function getPrivateLink($param=null) {
global $INFO;
global $lang;
@ -45,6 +47,8 @@ class helper_plugin_userhomepage extends DokuWiki_Plugin {
}
}
// Returns a link to current user's public page (even if it doesn't exist)
// If @param == "loggedinas", the link will be wraped in an <li> element
function getPublicLink($param=null) {
global $INFO;
global $lang;
@ -75,8 +79,9 @@ class helper_plugin_userhomepage extends DokuWiki_Plugin {
}
}
// Returns a link to any user's public page (user login is required and page must exist)
// This is to provide proper "Last update by" link
function getAnyPublicLink($userLogin) {
// global $INFO;
global $lang;
if ($userLogin != null) {
$publicID = $this->getPublicID($userLogin);

View file

@ -1,7 +1,7 @@
base userhomepage
author Simon Delage
email simon.geekitude@gmail.com
date 2015-03-25
date 2015-03-26
name User Homepage
desc Automatically create user's private namespace and/or public page and redirects users to private namespace on login.
url https://www.dokuwiki.org/plugin:userhomepage