API DOCS

DOCS & TUTORIALS » API DOCS » xajax_core » xajax.inc.php » xajax » registerFunction

Function: registerFunction


function registerFunction($mFunction, $sIncludeFile=null)

Parameters:

mFunction
(string or array) The string containing the function name

or an array containing the following
- (string) The function name as it will be called from javascript.- (object, by reference) A reference to an instance of a classcontaining the specified function.- (string) The function as it is found in the class passed in the secondparameter.

sIncludeFile
(string, optional) The server path to the PHP file to include when calling this function. This will enable xajax to loadonly the include file that is needed for this function call, thusreducing server load.

Note:

deprecated
This function will be removed in future versions. Please use register instead.


 



XAJAX on SourceForge.net
Support this project Valid XHTML 1.0 Transitional