You are here

protected function AFile::setFreeFileName in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

Generates and sets free file name for this file.

2 calls to AFile::setFreeFileName()
FileUploaded::uploadAndCommit in src/Flmngr/FileUploaderServer/lib/file/FileUploaded.php
Uploads and commits file.
FileUploadedQuick::upload in src/Flmngr/FileUploaderServer/lib/file/FileUploadedQuick.php

File

src/Flmngr/FileUploaderServer/lib/file/AFile.php, line 279

Class

AFile
Abstract file item both for just uploaded and fully commited files. Contains some handy method for accessing files info programmatically.

Namespace

Drupal\n1ed\Flmngr\FileUploaderServer\lib\file

Code

protected function setFreeFileName() {
  $name = Utils::getFreeFileName($this
    ->getBaseDir() . $this
    ->getDir(), $this
    ->getName(), FALSE);
  $this
    ->setName($name);
}