[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/ -> html.php (summary)

HTML output functions

Author: Andreas Gohr
License: GPL 2 (http://www.gnu.org/licenses/gpl.html)
File Size: 1437 lines (42 kb)
Included or required: 10 times
Referenced: 0 times
Includes or requires: 6 files
 inc/form.php
 inc/search.php
 inc/fulltext.php
 inc/parser/xhtml.php
 inc/parserutils.php
 inc/DifferenceEngine.php

Defines 36 functions

  html_wikilink()
  html_attbuild()
  html_login()
  html_secedit_button()
  html_secedit()
  html_topbtn()
  html_btn()
  html_show()
  html_draft()
  html_hilight()
  html_hilight_callback()
  html_search()
  html_locked()
  html_revisions()
  html_recent()
  html_index()
  html_list_index()
  html_li_index()
  html_li_default()
  html_buildlist()
  html_backlinks()
  html_diff()
  html_conflict()
  html_msgarea()
  html_register()
  html_updateprofile()
  html_edit()
  html_minoredit()
  html_debug()
  html_admin()
  html_resendpwd()
  html_TOC()
  html_list_toc()
  html_mktocitem()
  html_form()
  html_form_output()

Functions
Functions that are not part of a class:

html_wikilink($id,$name=NULL,$search='')   X-Ref
Convenience function to quickly build a wikilink

author: Andreas Gohr <andi@splitbrain.org>

html_attbuild($attributes)   X-Ref
Helps building long attribute lists

author: Andreas Gohr <andi@splitbrain.org>

html_login()   X-Ref
The loginform

author: Andreas Gohr <andi@splitbrain.org>

html_secedit_button($matches)   X-Ref
prints a section editing button
used as a callback in html_secedit

author: Andreas Gohr <andi@splitbrain.org>

html_secedit($text,$show=true)   X-Ref
inserts section edit buttons if wanted or removes the markers

author: Andreas Gohr <andi@splitbrain.org>

html_topbtn()   X-Ref
Just the back to top button (in its own form)

author: Andreas Gohr <andi@splitbrain.org>

html_btn($name,$id,$akey,$params,$method='get',$tooltip='')   X-Ref
Displays a button (using its own form)
If tooltip exists, the access key tooltip is replaced.

author: Andreas Gohr <andi@splitbrain.org>

html_show($txt='')   X-Ref
show a wiki page

author: Andreas Gohr <andi@splitbrain.org>

html_draft()   X-Ref
ask the user about how to handle an exisiting draft

author: Andreas Gohr <andi@splitbrain.org>

html_hilight($html,$phrases)   X-Ref
Highlights searchqueries in HTML code

author: Andreas Gohr <andi@splitbrain.org>
author: Harry Fuecks <hfuecks@gmail.com>

html_hilight_callback($m)   X-Ref
Callback used by html_hilight()

author: Harry Fuecks <hfuecks@gmail.com>

html_search()   X-Ref
Run a search and display the result

author: Andreas Gohr <andi@splitbrain.org>

html_locked()   X-Ref
Display error on locked pages

author: Andreas Gohr <andi@splitbrain.org>

html_revisions($first=0)   X-Ref
list old revisions

author: Andreas Gohr <andi@splitbrain.org>
author: Ben Coburn <btcoburn@silicodon.net>

html_recent($first=0)   X-Ref
display recent changes

author: Andreas Gohr <andi@splitbrain.org>
author: Matthias Grimm <matthiasgrimm@users.sourceforge.net>
author: Ben Coburn <btcoburn@silicodon.net>

html_index($ns)   X-Ref
Display page index

author: Andreas Gohr <andi@splitbrain.org>

html_list_index($item)   X-Ref
Index item formatter

User function for html_buildlist()

author: Andreas Gohr <andi@splitbrain.org>

html_li_index($item)   X-Ref
Index List item

This user function is used in html_build_lidt to build the
<li> tags for namespaces when displaying the page index
it gives different classes to opened or closed "folders"

author: Andreas Gohr <andi@splitbrain.org>

html_li_default($item)   X-Ref
Default List item

author: Andreas Gohr <andi@splitbrain.org>

html_buildlist($data,$class,$func,$lifunc='html_li_default')   X-Ref
Build an unordered list

Build an unordered list from the given $data array
Each item in the array has to have a 'level' property
the item itself gets printed by the given $func user
function. The second and optional function is used to
print the <li> tag. Both user function need to accept
a single item.

Both user functions can be given as array to point to
a member of an object.

author: Andreas Gohr <andi@splitbrain.org>

html_backlinks()   X-Ref
display backlinks

author: Andreas Gohr <andi@splitbrain.org>
author: Michael Klier <chi@chimeric.de>

html_diff($text='',$intro=true)   X-Ref
show diff

author: Andreas Gohr <andi@splitbrain.org>

html_conflict($text,$summary)   X-Ref
show warning on conflict detection

author: Andreas Gohr <andi@splitbrain.org>

html_msgarea()   X-Ref
Prints the global message array

author: Andreas Gohr <andi@splitbrain.org>

html_register()   X-Ref
Prints the registration form

author: Andreas Gohr <andi@splitbrain.org>

html_updateprofile()   X-Ref
Print the update profile form

author: Christopher Smith <chris@jalakai.co.uk>
author: Andreas Gohr <andi@splitbrain.org>

html_edit($text=null,$include='edit')   X-Ref
This displays the edit form (lots of logic included)

author: Andreas Gohr <andi@splitbrain.org>
triggers: HTML_PAGE_FROMTEMPLATE
triggers: HTML_EDITFORM_INJECTION

html_minoredit()   X-Ref
Adds a checkbox for minor edits for logged in users

author: Andrea Gohr <andi@splitbrain.org>

html_debug()   X-Ref
prints some debug info

author: Andreas Gohr <andi@splitbrain.org>

html_admin()   X-Ref
No description

html_resendpwd()   X-Ref
Form to request a new password for an existing account

author: Benoit Chesneau <benoit@bchesneau.info>

html_TOC($toc)   X-Ref
Return the TOC rendered to XHTML

author: Andreas Gohr <andi@splitbrain.org>

html_list_toc($item)   X-Ref
Callback for html_buildlist


html_mktocitem($link, $text, $level, $hash=')   X-Ref
Helper function to build TOC items

Returns an array ready to be added to a TOC array

param: string $link  - where to link (if $hash set to '#' it's a local anchor)
param: string $text  - what to display in the TOC
param: int    $level - nesting level
param: string $hash  - is prepended to the given $link, set blank if you want full links

html_form($name, &$form)   X-Ref
Output a Doku_Form object.
Triggers an event with the form name: HTML_{$name}FORM_OUTPUT

author: Tom N Harris <tnharris@whoopdedo.org>

html_form_output($data)   X-Ref
Form print function.
Just calls printForm() on the data object.




Generated: Tue Dec 2 01:30:01 2008 Cross-referenced by PHPXref 0.7