Beispiel #1
0
 private function Galeria($diretorio)
 {
     parent::Diretorio($diretorio);
     $this->imagens = new Lista();
     $arquivos = $this->getArquivos();
     for ($i = 0; $i < $arquivos->getSize(); $i = $i + 1) {
         $imagem = Imagem::init($arquivos->getElement($i)->getCaminho());
         if ($imagem) {
             $this->imagens->addElement($imagem);
         }
     }
     $this->mostras = $this->getPastas();
     $this->largura_thumbnail = 100;
     $this->altura_thumbnail = 100;
 }
Beispiel #2
0
 public function Explorer($caminho)
 {
     parent::Diretorio($caminho);
     $this->root = new HNode(new Pasta($this->getPath()));
 }