コード例 #1
0
 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();
 }
コード例 #2
0
ファイル: bio.class.php プロジェクト: Padow/gallery-photo
 public function __construct()
 {
     $this->_connexion = parent::__construct();
 }
コード例 #3
0
ファイル: pics.class.php プロジェクト: Padow/gallery-photo
 public function __construct($id)
 {
     $this->_connexion = parent::__construct();
     $this->getThumbnails($id);
 }
コード例 #4
0
ファイル: comment.class.php プロジェクト: Padow/gallery-photo
 public function __construct($datas)
 {
     $this->_connexion = parent::__construct();
     $this->_datas = $datas;
 }
コード例 #5
0
ファイル: gallery.class.php プロジェクト: Padow/gallery-photo
 public function __construct()
 {
     $this->_connexion = parent::__construct();
     $this->displayGalleries();
 }