class DefaultAssetNameGenerator implements AssetNameGenerator (View source)

Basic filename renamer

Properties

static private string $version_prefix

A prefix for the version number added to an uploaded file when a file with the same name already exists.

Methods

__construct(string $filename)

Construct a generator for the given filename

current()

No description

key()

No description

next()

No description

rewind()

No description

valid()

No description

int
getMaxTries()

Number of attempts allowed

Details

__construct(string $filename)

Construct a generator for the given filename

Parameters

string $filename

current()

key()

next()

rewind()

valid()

int getMaxTries()

Number of attempts allowed

Return Value

int