| 242 | | |
|---|
| 243 | | /**-----------------------------------------------------------------------**/ |
|---|
| 244 | | /** Fonctions des sous galeries */ |
|---|
| 245 | | /**-----------------------------------------------------------------------**/ |
|---|
| 246 | | |
|---|
| 247 | | // var $listSubGallery = array(); |
|---|
| 248 | | |
|---|
| 249 | | // function isSubGallery ($current_file) { |
|---|
| 250 | | // if (!is_dir ($this->getDirPath($this->dir).$current_file)) { |
|---|
| 251 | | // return false; |
|---|
| 252 | | // } |
|---|
| 253 | | // if ($current_file[0] == '.') { |
|---|
| 254 | | // return false; |
|---|
| 255 | | // } |
|---|
| 256 | | // if ($current_file == files::removeTailSlash(THUMB_DIR) |
|---|
| 257 | | // || $current_file == files::removeTailSlash(PREVIEW_DIR)) { |
|---|
| 258 | | // return false; |
|---|
| 259 | | // } |
|---|
| 260 | | // if (files::isPhotoFile ($this->dir, $current_file)) { |
|---|
| 261 | | // return false; |
|---|
| 262 | | // } |
|---|
| 263 | | // return true; |
|---|
| 264 | | // } |
|---|
| 265 | | |
|---|
| 266 | | // function hasSubGallery() { |
|---|
| 267 | | // return count($this->listSubGallery) > 0; |
|---|
| 268 | | // } |
|---|
| 269 | | |
|---|
| 270 | | // function addSubGalleries() { |
|---|
| 271 | | // // Ouverture du dossier des photos |
|---|
| 272 | | // if ($dir_fd = opendir ($this->getDirPath ($this->dir))) { |
|---|
| 273 | | |
|---|
| 274 | | // // Parcours des photos du dossiers |
|---|
| 275 | | // while ($current_file = readdir ($dir_fd)) { |
|---|
| 276 | | // if ($this->isSubGallery($current_file)) { |
|---|
| 277 | | // $this->listSubGallery[] = $current_file; |
|---|
| 278 | | // } |
|---|
| 279 | | // } |
|---|
| 280 | | // } |
|---|
| 281 | | // closedir($dir_fd); |
|---|
| 282 | | // } |
|---|