Exemplo n.º 1
0
 public function createFolder()
 {
     $error = array('code' => '0', 'text' => '');
     // Pfad in adm_my_files pruefen und ggf. anlegen
     $myFilesPhotos = new MyFiles('PHOTOS');
     if ($myFilesPhotos->checkSettings() == false) {
         $error['text'] = $myFilesPhotos->errorText;
         $error['path'] = $myFilesPhotos->errorPath;
         return $error;
     }
     // nun den Ordner fuer die Veranstaltung anlegen
     $folderName = $this->getValue('pho_begin', 'Y-m-d') . '_' . $this->getValue('pho_id');
     if ($myFilesPhotos->createFolder($folderName, true) == false) {
         $error['text'] = 'SYS_FOLDER_NOT_CREATED';
         $error['path'] = 'adm_my_files/photos/' . $folderName;
     }
     return $error;
 }