[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/lib/plugins/extension/helper/ -> list.php (summary)

DokuWiki Plugin extension (Helper Component)

Author: Michael Hamann
License: GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
File Size: 674 lines (24 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

helper_plugin_extension_list:: (25 methods):
  __construct()
  startForm()
  addRow()
  addHeader()
  addParagraph()
  addHidden()
  endForm()
  nothingFound()
  render()
  startRow()
  populateColumn()
  endRow()
  makeHomepageLink()
  makeClass()
  makeAuthor()
  makeScreenshot()
  makeLegend()
  makeLinkbar()
  makeNoticeArea()
  shortlink()
  makeInfo()
  makeLinkList()
  makeActions()
  makeAction()
  makeStatus()


Class: helper_plugin_extension_list  - X-Ref

Class helper_plugin_extension_list takes care of creating a HTML list of extensions

__construct()   X-Ref
Constructor

loads additional helpers

startForm()   X-Ref
Initialize the extension table form


addRow(helper_plugin_extension_extension $extension, $showinfo = false)   X-Ref
Build single row of extension table

param: helper_plugin_extension_extension  $extension The extension that shall be added
param: bool                               $showinfo  Show the info area

addHeader($id, $header, $level = 2)   X-Ref
Adds a header to the form

param: string $id     The id of the header
param: string $header The content of the header
param: int    $level  The level of the header

addParagraph($data)   X-Ref
Adds a paragraph to the form

param: string $data The content

addHidden(array $data)   X-Ref
Add hidden fields to the form with the given data

param: array $data key-value list of fields and their values to add

endForm()   X-Ref
Add closing tags


nothingFound()   X-Ref
Show message when no results are found


render($returnonly = false)   X-Ref
Print the form

param: bool $returnonly whether to return html or print

startRow(helper_plugin_extension_extension $extension)   X-Ref
Start the HTML for the row for the extension

param: helper_plugin_extension_extension $extension The extension

populateColumn($class, $html)   X-Ref
Add a column with the given class and content

param: string $class The class name
param: string $html  The content

endRow()   X-Ref
End the row


makeHomepageLink(helper_plugin_extension_extension $extension)   X-Ref
Generate the link to the plugin homepage

param: helper_plugin_extension_extension $extension The extension
return: string The HTML code

makeClass(helper_plugin_extension_extension $extension)   X-Ref
Generate the class name for the row of the extension

param: helper_plugin_extension_extension $extension The extension object
return: string The class name

makeAuthor(helper_plugin_extension_extension $extension)   X-Ref
Generate a link to the author of the extension

param: helper_plugin_extension_extension $extension The extension object
return: string The HTML code of the link

makeScreenshot(helper_plugin_extension_extension $extension)   X-Ref
Get the link and image tag for the screenshot/thumbnail

param: helper_plugin_extension_extension $extension The extension object
return: string The HTML code

makeLegend(helper_plugin_extension_extension $extension, $showinfo = false)   X-Ref
Extension main description

param: helper_plugin_extension_extension $extension The extension object
param: bool                              $showinfo  Show the info section
return: string The HTML code

makeLinkbar(helper_plugin_extension_extension $extension)   X-Ref
Generate the link bar HTML code

param: helper_plugin_extension_extension $extension The extension instance
return: string The HTML code

makeNoticeArea(helper_plugin_extension_extension $extension)   X-Ref
Notice area

param: helper_plugin_extension_extension $extension The extension
return: string The HTML code

shortlink($url)   X-Ref
Create a link from the given URL

Shortens the URL for display

param: string $url
return: string  HTML link

makeInfo(helper_plugin_extension_extension $extension)   X-Ref
Plugin/template details

param: helper_plugin_extension_extension $extension The extension
return: string The HTML code

makeLinkList($ext)   X-Ref
Generate a list of links for extensions

param: array $ext The extensions
return: string The HTML code

makeActions(helper_plugin_extension_extension $extension)   X-Ref
Display the action buttons if they are possible

param: helper_plugin_extension_extension $extension The extension
return: string The HTML code

makeAction($action, $extension)   X-Ref
Display an action button for an extension

param: string                            $action    The action
param: helper_plugin_extension_extension $extension The extension
return: string The HTML code

makeStatus(helper_plugin_extension_extension $extension)   X-Ref
Plugin/template status

param: helper_plugin_extension_extension $extension The extension
return: string The description of all relevant statusses