Contao Utils Bundle

FileUtil
in package

Table of Contents

Properties

$contaoFramework  : ContaoFramework
$projectDir  : string

Methods

__construct()  : mixed
getPathFromUuid()  : string|null
Get the path from a uuid.

Properties

$contaoFramework

private ContaoFramework $contaoFramework

Methods

__construct()

public __construct(ContaoFramework $contaoFramework, string $projectDir) : mixed
Parameters
$contaoFramework : ContaoFramework
$projectDir : string

getPathFromUuid()

Get the path from a uuid.

public getPathFromUuid(string $uuid[, array<string|int, mixed> $options = [] ]) : string|null

Options:

  • checkIfExist: (bool) Enable check if the the file exist. Default true
  • absolutePath: (bool) Return absolute path instead of relative path.
Parameters
$uuid : string
$options : array<string|int, mixed> = []
Return values
string|null

Return the path of the file, or null if not exists


        
On this page

Search results