You are here

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

Gets directory.

5 calls to AFile::getDir()
AFile::getData in src/Flmngr/FileUploaderServer/lib/file/AFile.php
Gets a data for response format file representation.
AFile::getPath in src/Flmngr/FileUploaderServer/lib/file/AFile.php
Gets path.
AFile::setFreeFileName in src/Flmngr/FileUploaderServer/lib/file/AFile.php
Generates and sets free file name for this file.
FileCommited::getFileModification in src/Flmngr/FileUploaderServer/lib/file/FileCommited.php
Gets specified file modification.
FileUploaded::rehost in src/Flmngr/FileUploaderServer/lib/file/FileUploaded.php
Rehosts a file (downloads from some URL).

File

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

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 getDir() {
  if (strlen($this->dir) != 0 && substr($this->dir, strlen($this->dir) - 1) !== DIRECTORY_SEPARATOR) {
    return $this->dir . DIRECTORY_SEPARATOR;
  }
  return $this->dir;
}