content.lib.php File Reference

Controls the main functionality : content edition. More...


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'


Detailed Description

Controls the main functionality : content edition.

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 :


Function Documentation

browserContentAdd (  ) 

customize browser title when adding content

Returns:
browser title

browserContentCustomize ( text  ) 

customize browser title for page content

Parameters:
$text text to add with wiki name and page title
Returns:
browser title

browserContentDisplay (  ) 

customize browser title when displaying content

Returns:
browser title

browserContentEdit (  ) 

customize browser title when editing content

Returns:
browser title

contentDelete (  ) 

ask user for confirmation before deleting content By Steven Whitbread <wiclear@crazyvibe.co.uk>

Returns:
html blob

contentEdit (  ) 

edit content

Returns:
html blob

createNavLevel ( node,
&$  trail,
&$  sublinks,
level 
)

recursive helper function for navigationBox

creates one level in the html tree, then calls itself for the next level

Author:
Kai Dietrich

createNavLink ( node,
link 
)

helper function for navigationBox

creates a navigation link

Author:
Kai Dietrich

getContentFilteredBySection ( &$  node,
section 
)

this method extract from a node wanted section

Parameters:
node node to extract section from
section the section to extract, -1 to extract everything
Returns:
extracted section

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

Parameters:
content the content to merge with
node node to merge with
section the section to merge, -1 to merge everything
Returns:
merged content

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


Generated on Mon Feb 19 19:11:58 2007 for Wiclear by  doxygen 1.4.7