This is some hacking to reduce database load: The necessary instances are loaded at once and cached by GALInstances while fetching them. On my system, this saves 0.4 seconds when displaying 300 images :-). It doesn't return the instances because in most cases GALImage::instance() is used to access instances. This adds only little overhead, because already fetched and constructed rows are cached, so that a call of GALTable::row() returns the requested row without database query or constructor call.
DOMElement show_thumbs(
int
$startOffset, array
$preset,
$node)
Shows multiple images as thumbnails.
This method appends xhtml markup to the given DOMNode that displays the items in the thumbnail layout.
Tags:
return:
The <ul> tag.
Overrides GALItem_multiFrontend::show_thumbs() (Shows multiple items as thumbnails This method appends xhtml markup to the given DOMNode that displays the items in the thumbnail layout.)
Parameters:
int
$startOffset
The offset of the first element in the current selection.
array
$preset
The GET parameters that are set for every generated link. The only parameter that is set automatically is the coffset and the layout parameter.