[Pmwiki-users] what are the variables to represent group name and page name?

Robert P. J. Day rpjday
Sun Oct 17 11:39:15 CDT 2004


On Sun, 17 Oct 2004, Patrick R. Michaud wrote:

> On Sun, Oct 17, 2004 at 01:08:40PM -0400, Robert P. J. Day wrote:
> >
> >   i'm looking at pmwiki 2, in the scripts/ directory, and i'm confused
> > by the selection of variable names to represent the current group and
> > current page names.
> >
> >   for group, it appears to be the variable $Group, but for page, it
> > looks like it's $PageName, kind of inconsistent.  for example,
> > scripts/print.php contains:
>
> $Group is the page's group  (e.g., "Main")
> $Name is the page's name  (e.g., "WikiSandbox")
>
> $PageName is the page's Group+Name  (e.g., "Main.WikiSandbox").

okay, i get it now, but i find the use of such a generic variable name
as $Name potentially wickedly confusing, given the number of possible
things that have a "name".

it would seem to make more sense to have names like, perhaps

  $Page
  $Group
  $FullPage

which appears to take exactly the same number of characters and seems
to be clearer.  or, if you didn't care about some extra characters,
even

  $PageName
  $GroupName
  $FullPageName

just my $0.02.

rday



More information about the pmwiki-users mailing list