You are here

public function BackupFile::setFullName in Backup and Migrate 8.4

Set the full filename with extensions.

Parameters

string $fullname: The full filename (with extension, without filepath)

Overrides BackupFileInterface::setFullName

1 call to BackupFile::setFullName()
ReadableStreamBackupFile::__construct in lib/backup_migrate_core/src/File/ReadableStreamBackupFile.php
Constructor.

File

lib/backup_migrate_core/src/File/BackupFile.php, line 117

Class

BackupFile
Class BackupFile.

Namespace

BackupMigrate\Core\File

Code

public function setFullName($fullname) {

  // Break the file name into name and extension array.
  $parts = explode('.', $fullname);
  $this
    ->setName(array_shift($parts));
  $this
    ->setExtList($parts);
}