~~INFO:helpermethods~~
Provides discussion funtionality for wiki pages
$discussion = plugin_load('helper', 'discussion');| Description | returns the header of the comments column for pagelist |
|---|
| Return value | header | string |
|---|
| Description | returns the link to the discussion section with number of comments |
|---|
| Parameters | id | string |
|---|
| number of comments (optional) | integer |
| Return value | link | string |
|---|
| Description | returns pages with discussion sections, sorted by recent comments |
|---|
| Parameters | namespace | string |
|---|
| number (optional) | integer |
| Return value | pages | array |
|---|
| Description | returns recently added or edited comments individually |
|---|
| Parameters | namespace | string |
|---|
| number (optional) | integer |
| Return value | pages | array |
|---|
| Description | check if current user is member of moderator groups |
|---|
| Return value | isModerator | boolean |
|---|
Foldable page sections
$folded = plugin_load('helper', 'folded');| Description | Returns the next folded ID. |
|---|
Functions to include another page in a wiki page
$include = plugin_load('helper', 'include');| Description | overrides standard values for showfooter and firstseconly settings |
|---|
| Parameters | flags | array |
|---|
Lists pages in a nice formatted way
$pagelist = plugin_load('helper', 'pagelist');| Description | adds an extra column for plugin data |
|---|
| Parameters | plugin name | string |
|---|
| column key | string |
| Description | overrides standard values for showfooter and firstseconly settings |
|---|
| Parameters | flags | array |
|---|
| Return value | success | boolean |
|---|
| Description | prepares the table header for the page list |
|---|
| Description | adds a page to the list |
|---|
| Parameters | page attributes, 'id' required, others optional | array |
|---|
| Description | returns the XHTML output |
|---|
| Return value | xhtml | string |
|---|
This plugin records the search words and displays stats in the admin section
$searchstats = plugin_load('helper', 'searchstats');| Description | returns search word array |
|---|
| Parameters | number of words | integer |
|---|
| Return value | words | array |
|---|
| Description | returns folder where data is saved |
|---|
| Return value | savefolder | string |
|---|
tag wiki pages
$tag = plugin_load('helper', 'tag');| Description | takes an array of sortflags and overrides predefined value |
|---|
| Parameters | name | string |
|---|
| Description | returns the header for the tags column for pagelist |
|---|
| Return value | header | string |
|---|
| Description | returns the tag links of a given page |
|---|
| Parameters | id | string |
|---|
| Return value | links | string |
|---|
| Description | generates tag links for given words |
|---|
| Parameters | tags | array |
|---|
| Return value | links | string |
|---|
| Description | returns a list of pages tagged with the given keyword |
|---|
| Parameters | namespace (optional) | string |
|---|
| number (not used) | integer |
| tag (required) | string |
| Return value | pages | array |
|---|
| Description | refines an array of pages with tags |
|---|
| Parameters | pages to refine | array |
|---|
| refinement tags | string |
| Return value | pages | array |
|---|
| Description | returns a list of tags with their number of occurrences |
|---|
| Parameters | list of tags to get the occurrences for | array |
|---|
| namespaces to which the search shall be restricted | array |
| if all tags shall be returned (then the first parameter is ignored) | boolean |
| if the namespaces shall be searched recursively | boolean |
| Return value | tags | array |
|---|