Документ взят из кэша поисковой машины. Адрес оригинального документа : http://dualopt1.cmm.msu.ru/bin/rdiff/TWiki/TWikiSearchDotPm?rev1=2&rev2=1
Дата изменения: Unknown
Дата индексирования: Fri Feb 28 22:29:48 2014
Кодировка:

Поисковые слова: tail
%TOPICTITLE% (1 vs. 2) - TWiki
Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs...
View   r2  >  r1  ...
TWikiSearchDotPm 2 - 2007-01-16 - Main.TWikiContributor
Line: 32 to 32
 If inline is set, then the results are not decorated with the search template head and tail blocks.
Changed:
<
<
SMELL: If format is set, template will be ignored.
>
>
Note: If format is set, template will be ignored.
 
Changed:
<
<
SMELL: If regex is defined, it will force type='regex'
>
>
Note: For legacy, if regex is defined, it will force type='regex'
  SMELL: If template is defined bookview will not work

TWikiSearchDotPm 1 - 2006-02-01 - Main.TWikiContributor
Line: 1 to 1
Added:
>
>

Package =TWiki::Search

This module implements all the search functionality.

ClassMethod new ($session)

Constructor for the singleton Search engine object.

StaticMethod getTextPattern ($text,$pattern)

Sanitise search pattern - currently used for FormattedSearch only

ObjectMethod searchWeb (...)

Search one or more webs according to the parameters.

If _callback is set, that means the caller wants results as soon as they are ready. =_callback_ should be set to a reference to a function which takes _cbdata as the first parameter and remaining parameters the same as 'print'.

If _callback is set, the result is always undef. Otherwise the result is a string containing the rendered search results.

If inline is set, then the results are not decorated with the search template head and tail blocks.

SMELL: If format is set, template will be ignored.

SMELL: If regex is defined, it will force type='regex'

SMELL: If template is defined bookview will not work

SMELL: it seems that if you define _callback or inline then you are responsible for converting the TML to HTML yourself!

FIXME: callback cannot work with format parameter (consider format='| $topic |'


Revision 2r2 - 2007-01-16 - 04:12:02 - TWikiContributor
Revision 1r1 - 2006-02-01 - 12:01:25 - TWikiContributor
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiSearchDotPm
Syndicate this site RSSATOM