public function __construct() { $this->_connexion = parent::__construct(); $dir = 'photos'; if (!is_dir($dir)) { mkdir($dir); } $gallery_list = array(); $gallery = scandir($dir); foreach ($gallery as $value) { if ($value != '.' && $value != '..') { $gallery_list[] = $dir . '/' . $value; } } $this->check_galleries($gallery_list); foreach ($gallery_list as $value) { $gallery_content = scandir($value); if ($this->metadata($gallery_content)) { $this->newGallery($value); } if ($this->metadataJson($gallery_content)) { $this->newGalleryJson($value); } } $this->displayGalleries(); }
public function __construct() { $this->_connexion = parent::__construct(); }
public function __construct($id) { $this->_connexion = parent::__construct(); $this->getThumbnails($id); }
public function __construct($datas) { $this->_connexion = parent::__construct(); $this->_datas = $datas; }
public function __construct() { $this->_connexion = parent::__construct(); $this->displayGalleries(); }