use Foswiki::Contrib::DBCacheContrib; $db = new Foswiki::Contrib::DBCacheContrib( $web ); # always done $db->load(); # may be always done, or only on demand when a tag is parsed that needs it # the DB is a hash of topics keyed on their name foreach my $topic ($db->getKeys()) { my $attachments = $db->fastget($topic)->fastget("attachments"); # attachments is an array foreach my $val ($attachments->getValues()) { my $aname = $attachments->fastget("name"); my $acomment = $attachments->fastget("comment"); my $adate = $attachments->fastget("date"); ... } }As topics are loaded, the readTopicLine method gives subclasses an opportunity to apply special processing to indivual lines, for example to extract special syntax such as %ACTION lines, or embedded tables in the text. See FormQueryPlugin for an example of this.
new($web, $cacheName[, $standardSchema ])
$web
name of web to create the object for.
$cacheName
name of cache file
$standardSchema
Set to 1 this will load the cache using the 'standard' Foswiki schema, rather than the original DBCacheContrib extended schema.
$topics
- perl array of topic names that have just been loaded (or reloaded)
uptodate($topic, $time)
→ boolean parseDate($string)
→ epoch ![]() |
© 2025 D.Soost & D.Marxsen - All rights reserved © Of all articles by authors Trademarks are the property of their respective owners © Logo by Wikipedia, modified by Administrator | Impressum Disclaimer Datenschutzerklärung |