You are here

public static function Utils::getExt in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

Gets file extension.

8 calls to Utils::getExt()
AFile::getExt in src/Flmngr/FileUploaderServer/lib/file/AFile.php
Gets extension of file.
FileCommited::getSizes in src/Flmngr/FileUploaderServer/lib/file/FileCommited.php
Gets sizes of image.
FileUploaded::checkForErrors in src/Flmngr/FileUploaderServer/lib/file/FileUploaded.php
Returns do we need to continue check or not.
FileUploadedQuick::checkForErrors in src/Flmngr/FileUploaderServer/lib/file/FileUploadedQuick.php
Returns do we need to continue check or not.
FMDiskFileSystem::resizeFile in src/Flmngr/FlmngrServer/fs/FMDiskFileSystem.php
Creates a resized image.

... See full list

File

src/Flmngr/FileUploaderServer/lib/file/Utils.php, line 24

Class

Utils
Utilites for uploader.

Namespace

Drupal\n1ed\Flmngr\FileUploaderServer\lib\file

Code

public static function getExt($name) {
  $i = strrpos($name, '.');
  if ($i !== FALSE) {
    return substr($name, $i + 1);
  }
  return NULL;
}