Esempio n. 1
0
 /**
  * Returns class instance
  *
  * @return MAILBOX_BOL_FileUploadDao
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
Esempio n. 2
0
 public function deleteUploadFile($hash, $userId)
 {
     $dto = $this->uploadFileDao->findUploadFile($hash, $userId);
     if ($dto === null) {
         return;
     }
     @unlink($dto->filePath);
     $this->uploadFileDao->deleteById($dto->id);
 }