You are here

public function AFile::getNameWithoutExt in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

Gets a name without extension.

2 calls to AFile::getNameWithoutExt()
FileCommited::getFileModification in src/Flmngr/FileUploaderServer/lib/file/FileCommited.php
Gets specified file modification.
FileCommited::getSizes in src/Flmngr/FileUploaderServer/lib/file/FileCommited.php
Gets sizes of image.

File

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

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

public function getNameWithoutExt() {
  $ext = $this
    ->getExt();
  if ($ext === NULL) {
    return $this->name;
  }
  return substr($this->name, 0, strlen($this->name) - strlen($ext) - 1);
}