Changeset 5259
- Timestamp:
- 10/12/09 03:21:16 (3 years ago)
- Location:
- trunk/DBCachePlugin
- Files:
-
- 2 edited
-
data/System/DBCachePlugin.txt (modified) (9 diffs)
-
lib/Foswiki/Plugins/DBCachePlugin/Core.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DBCachePlugin/data/System/DBCachePlugin.txt
r4416 r5259 59 59 the lookup mechanism will try to find the methods =VideoRenderMethod=, =MediaTypeRenderMethod= 60 60 and =ClassifiedTopicRenderMethod= in the given order and use the one found first. The web 61 these types are defined in is infer ed on the base of the !DataForm definitions of each of61 these types are defined in is inferred on the base of the !DataForm definitions of each of 62 62 these types. If none of these type-specific methods is found the method call will fallback 63 63 to a normal non-specific function call. The !TopicMethod itself is called with an implicit … … 68 68 69 69 *DBRECURSE* iterates over topics in a web following a certain topic-to-topic relation, like 70 the par tent-child relation among topics. You can define arbitrary relations using filters.70 the parent-child relation among topics. You can define arbitrary relations using filters. 71 71 72 72 … … 87 87 | =maxsize="..."= | specify biggest attachment | 88 88 | =mindate="..."= | specify earliest attachment | 89 | =minsize="..."= | specify smalles attachment |89 | =minsize="..."= | specify smallest attachment | 90 90 | =names="..."= | match the name of attachments to be include in the list | 91 91 | =user="..."= | match the attachments' user who uploaded it | … … 95 95 | =separator="..."= | format string put between each formatted attachment | 96 96 | =hidenull="on,off"= | hide/display the empty result; only the header and the footer are included \ 97 of set to "off" and there's no attachment at the given topic |98 | =sort="name,date,size,user,comment,comme t:name"= | sortion of result|97 if set to "off" and there's no attachment at the given topic | 98 | =sort="name,date,size,user,comment,comment:name"= | sort results by specified field | 99 99 | =reverse="on/off"= | enable reverse sorting | 100 100 | =limit="..."= | limit the number of attachments to the given number; by default show all | … … 150 150 | =section="..."= | optional named section; without this parameter the "default" section is used | 151 151 | =<key>="<value>"= | topic arguments to be substituted within the included text; that is \ 152 every occur ence of <key> is substituted with <value> |152 every occurrence of <key> is substituted with <value> | 153 153 | =warn="on,off"= | enable/suppress error warnings | 154 154 | =remote="on,off"= | switch fixing !WikiWords in transcluded content; \ 155 155 =on= means "don't touch, this is remote content" \ 156 defaults to "off" because that's the default behavio r of \156 defaults to "off" because that's the default behaviour of \ 157 157 =%<nop>INCLUDE{}%= (note, DBQUERY defaults to "on" \ 158 158 aka do-not-touch-mode) | 159 159 160 160 ---+++ DBDUMP 161 Display the database record of a topic (useful lfor debugging).161 Display the database record of a topic (useful for debugging). 162 162 163 163 *Syntax:* … … 226 226 will expand to the value of the formfield "Name" if it exists and is non-empty and to the value 227 227 of the formfield "Author" otherwise. More valid examples: 228 * =$expand(@Ref.Headline)=: headline of the refer ed topic228 * =$expand(@Ref.Headline)=: headline of the referred topic 229 229 * =$expand(Nr and '.')=: append a dot to the formfield value "Nr" if it exists 230 230 * =$expand(Name or Author)=: expand to "Name" or "Author" … … 251 251 | =singlefooter="..."= | format string to be used when only one topic is found | 252 252 | =hidenull="..."= | flag to indicate that an empty hit set should not be displayed | 253 | =filter="..."= | search expression that is used in ea rch recursion step; \253 | =filter="..."= | search expression that is used in each recursion step; \ 254 254 the current topic name is inserted into the filter expression by replacing the ='$ref'= string; \ 255 255 the default filter is ='parent='$name'=; this will search for topics of which the current topic \ 256 256 is a parent | 257 | =sort="..."= | determines the sorti on of topics in each itteration step |257 | =sort="..."= | determines the sorting order of topics in each iteration step | 258 258 | =reverse="on,off"= | reverse sorting order | 259 | =limit="..."= | maximum it terations, default is =0= (unlimitted) |259 | =limit="..."= | maximum iterations, default is =0= (unlimited) | 260 260 | =skip="..."= | skips the first =n= hits when formatting the output, defaults to =0= (no skip) | 261 | =depth="..."= | only recurse to a given depth, defaults to =0= (unlimit ted) |261 | =depth="..."= | only recurse to a given depth, defaults to =0= (unlimited) | 262 262 | =include="..."= | regular expression topics must match to be included in the search | 263 263 | =exclude="..."= | regular expression that excludes matching topics from the search | … … 307 307 | =sort="alpha,created"= | order of keys in the output | 308 308 | =reverse="on,off"= | sort keys descending or ascending | 309 | =limit="..."= | maximum number of keys to be format ed in the output |309 | =limit="..."= | maximum number of keys to be formatted in the output | 310 310 | =hidenull="..."= | flag to indicate that an empty hit set should not be displayed | 311 311 … … 320 320 * $key, $key1: the found key, this must match the first group in the pattern argument 321 321 * $key2, $key3, $key4,$key5: second, third, etc grouping in the =pattern= argument 322 * $count: the number of occur ences of the key322 * $count: the number of occurrences of the key 323 323 * $index: index of the key within the sorted result set 324 324 * $min: minimum count found in the search 325 325 * $max: maximum count found in the search 326 * $mean: mean occur ence of a key in the result set326 * $mean: mean occurrence of a key in the result set 327 327 * $keys: total number of keys found 328 328 * $web: the web we search in -
trunk/DBCachePlugin/lib/Foswiki/Plugins/DBCachePlugin/Core.pm
r4358 r5259 1078 1078 1079 1079 return if $params->{depth} && $depth >= $params->{depth}; 1080 return if $params->{limit} && $params->{_count} >= $params->{limit}; 1080 1081 1081 1082 #writeDebug("called formatRecursive($theWeb, $theTopic)");
Note: See TracChangeset
for help on using the changeset viewer.
