Loading...
 
Skip to main content

Custom functions documentation

Copy to clipboard
grep -rno --exclude-dir={temp,templates_c,.*,lang,vendor,vendor-extra,tags,styles} "function fetchAll(" *
This page's purpose is to help share information about custom, user-defined, functions that are used in tikiwiki php code. Especially for new developers, this page aims to provide a better understanding of how tiki works, to speed up the development process, especially of new plugins.


Image

Useful commands

To look for a function (replace fectchAll with the name of your current function) :

Copy to clipboard
grep -rno --exclude-dir={temp,templates_c,.*,lang,vendor,vendor-extra,tags,styles} "function fetchAll(" *

Then, when you get what you want, call again in a subshell the results, and you have everything opened at once as buffers in vim.

Copy to clipboard
vim $(!! -l)

To vsplit everything in vim type:

Copy to clipboard
:vertical sball

Function list

Function nameParameters, bold = mandatoryDescription and link to documentation
fetchAll()$query, $values, $numrows, $offset, $reporterrors {true, false} Takes a SQL query in character string form in $query, outputs a numbered array with the query results: doc
fetchMap()$query, $values, $numrows, $offset, $reporterrors {true, false} Takes a SQL query in character string form in $query, outputs an associative array with the first SELECT item as key: doc
get_tracker()
Show PHP error messages