faq::fts::datasource (private)

 faq::fts::datasource faq_id

Defined in packages/faq/tcl/faq-sc-procs.tcl

returns a datasource for a faq event to be indexed by the full text search engine.

Parameters:
faq_id (required)
Author:
davis@xarg.net
Created:
2004-04-01

Partial Call Graph (max 5 caller/called nodes):
%3 AcsSc.ftscontentprovider.datasource.faq AcsSc.ftscontentprovider.datasource.faq (private) faq::fts::datasource faq::fts::datasource AcsSc.ftscontentprovider.datasource.faq->faq::fts::datasource db_foreach db_foreach (public) faq::fts::datasource->db_foreach db_string db_string (public) faq::fts::datasource->db_string

Testcases:
No testcase defined.
Source code:
    set title [db_string name {select faq_name from faqs where faq_id = :faq_id} -default "FAQ $faq_id"]
    set content {}
    db_foreach qa { select question, answer from faq_q_and_as where faq_id = :faq_id } {
        append content "Q: $question\n\nA: $answer\n\n"
    }

    return [list object_id $faq_id  title $title  content $content  keywords {}  storage_type text  mime text/plain ]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: