class DefaultAssetNameGenerator implements AssetNameGenerator (View source)

Basic filename renamer

Properties

protected string $filename

Original filename

protected string $directory Directory
protected string $name

Name without extension or directory

protected string $extension

Extension (including leading period)

protected int $version

Next version number to suggest

protected int $max

Maximum number to suggest

protected int $padding

Number of digits to prefix with 0, if padding

protected int $first

First version

Methods

public
__construct(string $filename)

Construct a generator for the given filename

protected
string
getPrefix()

Get numeric prefix

public
string
current()

No description

public
int
key()

No description

public
void
next()

No description

public
void
rewind()

No description

public
bool
valid()

No description

public
int
getMaxTries()

Number of attempts allowed

Details

__construct(string $filename)

Construct a generator for the given filename

Parameters

string $filename

protected string getPrefix()

Get numeric prefix

Return Value

string

string current()

No description

Return Value

string

int key()

No description

Return Value

int

void next()

No description

Return Value

void

void rewind()

No description

Return Value

void

bool valid()

No description

Return Value

bool

int getMaxTries()

Number of attempts allowed

Return Value

int