Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
Test /
VariablesAndFriends
There is a bit of confusion because there are four different entities that appear in a PmWiki system that are preceded by a dollar sign ($):
See FmtPageName for more details. And here's something from the mouth of pm:
As far as keeping thing straight for those who need to understand
the differences, there are really only three things to know.
1. Things like "{$Group}" and "{$LastModified}" are *markup*.
You can call them "variables" or "markup variables" if it pleases
you, but they don't really exist as variables anywhere in the
PmWiki code, nor is there an enforced correspondence between them
and any PHP variable. They're just substitutions in the Markup()
sequence, the same as [=... or (:include:) or (:table:) or
any other markup.
2. A limited set of $-substitutions -- basically anything that corresponds to a page attribute -- are not PHP variables and
are only available through the FmtPageName?() subroutine.
The complete set of these special substitutions is $Group,
$Name, $FullName, $PageUrl, $Title, $Titlespaced, $Namespaced,
$Groupspaced, $LastModifiedBy, $LastModifiedHost, and $LastModified.
These items cannot just be standard PHP variables because often
PmWiki needs to obtain the url, name, group, title, etc. of a page
other than the one currently being viewed by a browser.
3. With minor exceptions, basically everything else you see that looks like $VarName is a PHP variable. Pm =] |
0: 00.00 00.00 config start 1: 00.00 00.00 config end 2: 00.05 00.05 MarkupToHTML begin 3: 00.16 00.15 MarkupToHTML end 4: 00.17 00.16 MarkupToHTML begin 5: 00.19 00.18 ReadApprovedUrls SiteAdmin.ApprovedUrls begin 6: 00.20 00.19 ReadApprovedUrls SiteAdmin.ApprovedUrls end 7: 00.22 00.20 MarkupToHTML end 8: 00.22 00.20 MarkupToHTML begin 9: 00.23 00.22 MarkupToHTML end 10: 00.23 00.22 now