Definition at line 1183 of file image_manager.inc.
◆ __construct()
ImageGalleryScanManager::__construct |
( |
|
$gallery | ) |
|
Definition at line 1188 of file image_manager.inc.
1192 $images = $this->gallery->Images();
1195 $this->indexedImages = reindexList(
$images,
"image_file");
1199 $this->indexedImages = array();
◆ rescan()
ImageGalleryScanManager::rescan |
( |
| ) |
|
Definition at line 1203 of file image_manager.inc.
1207 $base = sanitizePath($this->gallery->getGalleryDirectory());
1209 $files = scandir(
$base);
1210 foreach($files as
$file)
1214 if ($this->indexedImages[
$file])
continue;
1220 $image->published =
true;
1221 $image->gallery_id = $this->gallery->gallery_id;
◆ $gallery
ImageGalleryScanManager::$gallery |
◆ $indexedImages
ImageGalleryScanManager::$indexedImages = array() |
The documentation for this class was generated from the following file: