\subsubsection[{get\_\-hooks}]{\setlength{\rightskip}{0pt plus 5cm}if (!isset(\$hooks)) if (!isset(\$modules)) if (!isset(\$services)) get\_\-hooks ()}}
\hyperlink{modules_8inc_8php}{modules.inc.php} Generic modules and services infrastructure
Copyright Gottfried Haider, Danja Vasiliev 2010. This source code is licensed under the GNU General Public License. See the file COPYING for more details. get an array of all currently registered hooks
invoke a hook with a specified module being called first
this function also takes care of loading all modules. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em string}]\$hook hook to invoke \item[{\em string}]\$first\_\-module name of first module to call \item[{\em array}]\$args arguments-array (can include references) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]array of results (module=$>$result) \end{Desc}
invoke a hook with a specified module being called last
this function also takes care of loading all modules. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em string}]\$hook hook to invoke \item[{\em string}]\$first\_\-module name of last module to call \item[{\em array}]\$args arguments-array (can include references) \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]array of results (module=$>$result) \end{Desc}
invoke a hook while the returned result is \$while
this function also takes care of loading all modules. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em string}]\$hook hook to invoke \item[{\em mixed}]\$while value to compare the returned result with \item[{\em array}]\$args arguments-array \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]array with result (module=$>$result) or empty result if there was none \end{Desc}
use this function instead of including module\_\-$\ast$ files directly. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em string}]\$search module to load (by default all modules are loaded) \item[{\em bool}]\$optional whether to log any error to locate the module \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]bool true if successful, false if not \end{Desc}
\item[{\em mixed}]\$data (payload) data (should be the error-message if \$error is true) \item[{\em mixed}]\$error error core or true if an error occurred \end{description}
this function checks the arguments in \$args against the (optional) declaration given in \hyperlink{modules_8inc_8php_e6ed600fb2ce39a4b0837bbb01fe8d6e}{register\_\-service()}. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em string}]\$service service name \item[{\em array}]\$args arguments-array \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]return value of the service function or a response-array in case of an error \end{Desc}