CMS  Version 3.9
ImageGalleryView Class Reference

Public Member Functions

 ImageGalleryView ($images, $linkFormat, $id="images", $size=125)
 
 drawGallery ()
 

Public Attributes

 $grid
 
 $id
 
 $images
 
 $linkFormat
 
 $spacing = 0
 
 $styles
 
 $titleFormat = "{title}"
 

Detailed Description

Definition at line 39 of file image_gallery_view.inc.

Member Function Documentation

◆ drawGallery()

ImageGalleryView::drawGallery ( )

Definition at line 58 of file image_gallery_view.inc.

59  {
60  foreach($this->images as $image)
61  {
62  $this->grid->addItem($image->image_id, $image->format($this->titleFormat), $image->caption, $image->format($this->linkFormat));
63  }
64 
65  global $script;
66 
67  $script .= $this->grid->writeScript();
68  $this->grid->drawView();
69  }
$image
Definition: image_form.inc:46

◆ ImageGalleryView()

ImageGalleryView::ImageGalleryView (   $images,
  $linkFormat,
  $id = "images",
  $size = 125 
)

Definition at line 50 of file image_gallery_view.inc.

51  {
52  $this->id = $id;
53  $this->grid = new ImageGrid($id . "_gallery", $size);
54  $this->images = $images;
55  $this->linkFormat = $linkFormat;
56  }
$size
Definition: download.inc:47

Member Data Documentation

◆ $grid

ImageGalleryView::$grid

Definition at line 41 of file image_gallery_view.inc.

◆ $id

ImageGalleryView::$id

Definition at line 42 of file image_gallery_view.inc.

◆ $images

ImageGalleryView::$images

Definition at line 44 of file image_gallery_view.inc.

◆ $linkFormat

ImageGalleryView::$linkFormat

Definition at line 45 of file image_gallery_view.inc.

◆ $spacing

ImageGalleryView::$spacing = 0

Definition at line 46 of file image_gallery_view.inc.

◆ $styles

ImageGalleryView::$styles

Definition at line 47 of file image_gallery_view.inc.

◆ $titleFormat

ImageGalleryView::$titleFormat = "{title}"

Definition at line 48 of file image_gallery_view.inc.


The documentation for this class was generated from the following file: