You are here

public function BackupFile::setFullName in Backup and Migrate 5.0.x

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 src/Core/File/ReadableStreamBackupFile.php
Constructor.

File

src/Core/File/BackupFile.php, line 119

Class

BackupFile
@package Drupal\backup_migrate\Core\File

Namespace

Drupal\backup_migrate\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);
}