Ejemplo n.º 1
0
 public function destroy(ConnectionInterface $con = null, $deleteModuleData = false)
 {
     if ($deleteModuleData) {
         $fs = new Filesystem();
         $diaporamaImagesFolder = Diaporamas::getDiaporamaImagesFolder();
         $fs->exists($diaporamaImagesFolder) and $fs->remove($diaporamaImagesFolder);
     }
     return parent::destroy($con, $deleteModuleData);
 }
Ejemplo n.º 2
0
 /**
  * @return string the path to the upload directory where files are stored, without final slash
  */
 public function getUploadDir()
 {
     return Diaporamas::getDiaporamaImagesFolder();
 }