[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

DokuWiki Plugin extension (Helper Component)

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

Defines 1 class

helper_plugin_extension_repository:: (5 methods):
  init()
  hasAccess()
  getData()
  search()
  parseQuery()


Class: helper_plugin_extension_repository  - X-Ref

Class helper_plugin_extension_repository provides access to the extension repository on dokuwiki.org

init()   X-Ref
Initialize the repository (cache), fetches data for all installed plugins


hasAccess($usecache = true)   X-Ref
If repository access is available

param: bool $usecache use cached result if still valid
return: bool If repository access is available

getData($name)   X-Ref
Get the remote data of an individual plugin or template

param: string $name The plugin name to get the data for, template names need to be prefix by 'template:'
return: array The data or null if nothing was found (possibly no repository access)

search($q)   X-Ref
Search for plugins or templates using the given query string

param: string $q the query string
return: array a list of matching extensions

parseQuery($q)   X-Ref
Parses special queries from the query string

param: string $q
return: array