Provides access to the geoPHP library available at https://github.com/funiq/geoPHP.
$geophp = plugin_load('helper', 'geophp');
Provides a syntax for rendering an OpenLayers based map in a wiki page.
$openlayersmap_staticmap = plugin_load('helper', 'openlayersmap_staticmap');
Description | returns url to the image |
---|
Parameters | lat | float |
---|
lon | float |
zoom | integer |
size | string |
maptype | string |
markers | string |
gpx | string |
kml | string |
geojson | string |
apikey | string |
Return value | image | string |
---|
Lists pages in a nice formatted way
$pagelist = plugin_load('helper', 'pagelist');
Description | (optional) adds an extra column for plugin data |
---|
Parameters | plugin name | string |
---|
column key | string |
Description | (optional) override value of an existing column, value equal to false disables column |
---|
Parameters | column key | string |
---|
value | int|bool |
Description | (optional) Provide header data, if not given default values or [plugin]->th() is used |
---|
Parameters | column key | string |
---|
value | int|bool |
Description | (optional) overrides default flags, or en/disable existing columns |
---|
Parameters | flags | array |
---|
Return value | success | boolean |
---|
Description | (required) prepares the table header for the page list |
---|
Description | (required) adds a page to the list |
---|
Parameters | page attributes, 'id' required, others optional | array |
---|
Description | (required) returns the XHTML output |
---|
Return value | xhtml | 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 |
---|