Functions | |
| browserContentCustomize ($text) | |
| customize browser title for page content | |
| browserContentDisplay () | |
| customize browser title when displaying content | |
| browserContentEdit () | |
| customize browser title when editing content | |
| browserContentAdd () | |
| customize browser title when adding content | |
| loadMainPage () | |
| loads main page | |
| editContentLink () | |
| creates edit content link | |
| addContentLink () | |
| creates add content link | |
| deleteLink () | |
| creates delete link | |
| makeRootLink () | |
| creates a "make root" link | |
| printLink () | |
| creates a print link | |
| sourceLink () | |
| creates a print link | |
| subContentBox () | |
| display list of sub nodes as an unordered list | |
| parentContentBox () | |
| display list of parent nodes as an unordered list | |
| phpExecutionTimeBox () | |
| display time taken by script during whole execution | |
| sqlExecutionTimeBox () | |
| display time taken by sql queries during whole execution | |
| contentDisplay ($showLangs=true) | |
| display content | |
| sourceDisplay () | |
| display source | |
| getContentFilteredBySection (&$node, $section) | |
| this method extract from a node wanted section | |
| mergeWithNodeAndSection ($content, &$node, $section) | |
| this method merge a node by replacing section with given content | |
| contentEdit () | |
| edit content | |
| onContentEdit () | |
| called when user submit content | |
| contentDelete () | |
| ask user for confirmation before deleting content By Steven Whitbread <wiclear@crazyvibe.co.uk> | |
| onContentDelete () | |
| called when user delete content | |
| onContentMakeRoot () | |
| called when user choose a page as new root for the site | |
| navigationBox () | |
| display navigation box | |
| createNavLevel ($node, &$trail, &$sublinks, $level) | |
| recursive helper function for navigationBox | |
| createNavLink ($node, $link) | |
| helper function for navigationBox | |
Variables | |
| $mainPageHandler = 'loadMainPage' | |
| $contentBoxHandle ['default'] = 'contentDisplay' | |
| $contentBoxHandle ['edit'] = 'contentEdit' | |
| $contentBoxHandle ['add'] = 'contentEdit' | |
| $contentBoxHandle ['delete'] = 'contentDelete' | |
| $contentBoxHandle ['source'] = 'sourceDisplay' | |
| $userActionHandle ['edit'] = 'onContentEdit' | |
| $userActionHandle ['add'] = 'onContentEdit' | |
| $userActionHandle ['delete_confirm'] = 'onContentDelete' | |
| $userActionHandle ['make_root'] = 'onContentMakeRoot' | |
| $browserTitlePageHandle ['default'] = 'browserContentDisplay' | |
| $browserTitlePageHandle ['edit'] = 'browserContentEdit' | |
| $browserTitlePageHandle ['add'] = 'browserContentAdd' | |
This file creates several hooks :
Edition is done via a form that contains several fields :
This page contains also several helper functions for the user to create template :
| browserContentAdd | ( | ) |
customize browser title when adding content
| browserContentCustomize | ( | $ | text | ) |
customize browser title for page content
| $text | text to add with wiki name and page title |
| browserContentDisplay | ( | ) |
customize browser title when displaying content
| browserContentEdit | ( | ) |
customize browser title when editing content
| contentDelete | ( | ) |
ask user for confirmation before deleting content By Steven Whitbread <wiclear@crazyvibe.co.uk>
| contentEdit | ( | ) |
edit content
| createNavLevel | ( | $ | node, | |
| &$ | trail, | |||
| &$ | sublinks, | |||
| $ | level | |||
| ) |
recursive helper function for navigationBox
creates one level in the html tree, then calls itself for the next level
| createNavLink | ( | $ | node, | |
| $ | link | |||
| ) |
helper function for navigationBox
creates a navigation link
| getContentFilteredBySection | ( | &$ | node, | |
| $ | section | |||
| ) |
this method extract from a node wanted section
| node | node to extract section from | |
| section | the section to extract, -1 to extract everything |
| loadMainPage | ( | ) |
loads main page
| mergeWithNodeAndSection | ( | $ | content, | |
| &$ | node, | |||
| $ | section | |||
| ) |
this method merge a node by replacing section with given content
this is the "pendant" of method getContentFilteredBySection
| content | the content to merge with | |
| node | node to merge with | |
| section | the section to merge, -1 to merge everything |
| onContentDelete | ( | ) |
called when user delete content
| onContentEdit | ( | ) |
called when user submit content
| onContentMakeRoot | ( | ) |
called when user choose a page as new root for the site
1.4.7