[ Index ] |
PHP Cross Reference of Eventum |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 376 lines (15 kb) |
Included or required: | 2 times |
Referenced: | 0 times |
Includes or requires: | 2 files include/class.user.php include/class.issue.php |
Link_Filter:: (10 methods):
getDetails()
getList()
insert()
remove()
update()
processText()
activateLinks()
getFilters()
callbackIssueLinks()
processIssueSpecificLinks()
Class: Link_Filter - X-Ref
Class to handle parsing content for links.getDetails($lfi_id) X-Ref |
Returns information about a specific link filter. param: integer $lfi_id The ID of the link filter to return info about. return: array An array of information. |
getList() X-Ref |
Lists the link filters currently in the system. return: array An array of information. |
insert() X-Ref |
Inserts a new link filter into the database. return: integer 1 if insert was successful, -1 otherwise |
remove() X-Ref |
Removes link filters from the database return: integer 1 if delete was successful, -1 otherwise. |
update() X-Ref |
Updates link filter information. return: integer 1 if insert was successful, -1 otherwise |
processText($prj_id, $text, $class = "link") X-Ref |
Processes text through all link filters. param: integer $prj_id The ID of the project param: string $text The text to process param: string $class The CSS class to use on the actual links return: string The processed text. |
activateLinks($text) X-Ref |
Callback function to be used from template class. param: string $text The text to process return: string the processed text. |
getFilters($prj_id) X-Ref |
Returns an array of patterns and replacements. param: integer $prj_id The ID of the project return: array An array of patterns and replacements |
callbackIssueLinks($matches) X-Ref |
Method used as a callback with the regular expression code that parses text and creates links to other issues. param: array $matches Regular expression matches return: string The link to the appropriate issue |
processIssueSpecificLinks($text, $class = "link") X-Ref |
Method used to parse the given string for references to issues in the system, and creating links to those if any are found. param: string $text The text to search against param: string $class The CSS class to use on the actual links return: string The parsed string |
Generated: Wed Dec 19 21:21:33 2007 | Cross-referenced by PHPXref 0.7 |