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

string
current()

No description

int
key()

No description

void
next()

No description

void
rewind()

No description

bool
valid()

No description

int
getMaxTries()

Number of attempts allowed

Details

__construct(string $filename)

Construct a generator for the given filename

Parameters

string $filename

string current()

Return Value

string

int key()

Return Value

int

void next()

Return Value

void

void rewind()

Return Value

void

bool valid()

Return Value

bool

int getMaxTries()

Number of attempts allowed

Return Value

int