Class WikiWidget
From Hexten
Contents |
[edit] Synopsis
[edit] Interface
[edit] Argument Handling
[edit] arg($name, $default = null)
Get the value for the named argument.
[edit] args()
Get the Widget's argument array.
[edit] need($name)
Get the value of one of the Widget's arguments throwing an exception if the argument is undefined.
[edit] setDefaults($ar)
Set default values for arguments.
[edit] Configuration
[edit] config($name, $default = null)
Get a config item for this widget.
[edit] needConfig($name)
Get one of the Widget's configuration values throwing an exception if it is undefined.
[edit] Input
[edit] input()
Get the input string for the Widget.
[edit] inputDocument()
Parse the Widget's input as XML using Class DocumentParser.
[edit] parseWikiMarkup($text)
[edit] parser()
[edit] Output
[edit] clearOutput()
Clear the output buffer.
[edit] disableCache()
Disable MediaWiki's cache for this Widget. Use for Widgets that generate dynamic markup.
[edit] getOutput()
Get the contents of the output buffer and clear it.
[edit] output($str, ...)
Output one or more strings.
[edit] Generating Markup
[edit] closeScript()
Return a fragment of HTML that terminates inline JavaScript.
[edit] closeTag($name)
Return a string containing a closing HTML/XML tag.
[edit] closedTag($name, $args = null)
Return a closed XML / XHTML tag.
[edit] endBox()
Output the markup necessary to end a message box.
[edit] openScript()
Returns a fragment of HTML that starts an inline Javascript section.
[edit] openTag($name, $args = null)
Return an opening XML or HTML tag.
[edit] startBox($caption, $type)
[edit] tag($name, $text, $args = null)
[edit] Widget Creation
[edit] bind($input, $argv, &$parser, &$info)
Called to bind a Widget to its environment after loading.
[edit] complete()
Called to complete initialisation after binding.
[edit] initialize()
Called during Widget initialization.
[edit] Debugging
[edit] debug($str, ...)
Append to debug output. Does nothing if debug is disabled.
[edit] debugDump($name, $val)
Output a representation of a variable's value if debugging.
[edit] dumpArgs()
Add a dump of the Widget's args to the debug output.
[edit] dumpOutput()
Add a dump of the output buffer to debug.
[edit] isDebug()
Return true if we're in debug mode.
[edit] Utility
[edit] extensions()
Return the path to the wx home directory. Typically something like /wiki/extensions/wx.
[edit] fountain()
Return a new unique ID for this Widget.
[edit] home()
Return the path to the wiki. Typically something like /wiki.
[edit] makeURI($base, $args = null)
Build a URI by appending a number of arguments to a base URI.
[edit] meta()
Return the meta data array for this Widget.
[edit] name()
Return this Widget's human readable name.
[edit] title()
Get the title of the page containing this Widget.
[edit] type()
[edit] widgetDir()
[edit] Rendering
[edit] render()
Called by the framework to render the Widget.

