* @version $Revision: 17580 $ * @abstract */ class GalleryRenderer { /** * Can this renderer display the given item? * * @param GalleryDataItem $item * @return boolean true if this data item can be viewed inline */ function canBeViewedInline($item) { return false; } /** * Render the given GalleryItem in the given output format. For example, you can render a * GalleryPhotoItem with an tag in the HTML format, whereas GalleryMovieItem would use * or . * * This method takes an entity to render, and the item which has its metadata. In some cases, * these will be the same thing (like when rendering the original of a GalleryPhotoItem). In * other cases, it will be different, like when you're rendering a resize. In that case, the * entity would be a GalleryDerivative and the item would be the GalleryPhotoItem. * * @param string $format the format (eg. "HTML") * @param GalleryEntity $entity the entity to render * @param GalleryItem $item the parent item * @param array $params format specific key value pairs * @return string formatted output */ function render($format, $entity, $item, $params) { return null; } } ?>