HierarchicalFilenameResolver
in package
Resolve filenames by a set of attachment ids.
Table of Contents
Properties
- $folders : mixed
- $rootFolder : mixed
Methods
- __construct() : mixed
- C'tor.
- excludeRoot() : bool
- Exclude the main folder from the attachment path because the exported zip already starts with the exported name as first-level folder.
- resolve() : string
- Resolve the filename to RML specific folder.
Properties
$folders
private
mixed
$folders
= null
$rootFolder
private
mixed
$rootFolder
= null
Methods
__construct()
C'tor.
public
__construct(IFolder $rootFolder) : mixed
Parameters
- $rootFolder : IFolder
excludeRoot()
Exclude the main folder from the attachment path because the exported zip already starts with the exported name as first-level folder.
public
excludeRoot(IFolder $folder) : bool
Parameters
- $folder : IFolder
Return values
boolresolve()
Resolve the filename to RML specific folder.
public
resolve(string $file, array<string|int, mixed> $attachment, array<string|int, int> $attachmentIds) : string
Parameters
- $file : string
- $attachment : array<string|int, mixed>
- $attachmentIds : array<string|int, int>