File/cms/include/retrieve.inc.php

Description
Functions
findCategoryPattern (line 43)

Given a specific template ID retrieve the corresponding PATTERN, THAT and TOPIC.

Retrieve the Pattern, That and Topic using only the ID of the corresponding template. This function has also been adapted to make it possible to substitute the template ID for a parent ID and retrieve the pattern-words that came before that ID. To do this set $pat to 1.

array findCategoryPattern (integer $botid, integer $templateID, [boolean $pat = 0])
  • integer $botid: The bot's ID.
  • integer $templateID: The category's ID.
  • boolean $pat: To use a parent ID from the pattern table instead of template ID
findPatternPart (line 121)

Get the word and the parent ID using the known pattern ID.

Because the word tree is traveled backwards, from leaf-node (i.e. the template reference) to the trunk (i.e. the <input> node), there needs to be a reference to the previous word, this is the parent ID in the parent column. Both the word (including the * and _) and the parent ID are returned.

array findPatternPart (string $patternID)
  • string $patternID: The pattern word ID.

Documentation generated on Tue, 11 Jan 2005 18:41:10 +0100 by phpDocumentor 1.3.0RC3