Print debug message.
This function is called at strategic places in the code. Uncommenting the the print command will activate the 'debugger' mode.
Retrieve the Main Node ID.
The main node is the start-node of the AIML tree, the trunk if you will. This node often contains the word <input> and the parent reference is always the bot's ID, only negative. Thus, making sure that it doesn't conflict with parent ID's of AIML categories.
Get the parent ID.
Retrieve the corresponding parent ID (i.e. the next word's pattern ID) for this pattern ID.
Get the chatterbots names from table
Retrieve an array with the botnames and their ID's from the bots table
Make REQUEST variables in to regular variables.
Retrieves REQUEST variables (POST/GET) and turns them into regular variables If the REQUEST variable doesn't exist, it creates the variables with the default value that's also passed with it.
Load template file from template folder.
Template function. Retrieves the template from the templates folder.
Check if template ID exists.
Check to see if a specific template ID is found in the templates tables.
Replace placeholders in template file with array elements.
Template function. Takes an array of values, and the name of the template and replaces the placeholders with their array equivilent values.
Documentation generated on Tue, 11 Jan 2005 18:41:02 +0100 by phpDocumentor 1.3.0RC3