DefaultAssetNameGenerator
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
Details
__construct(string $filename)
Construct a generator for the given filename
protected string
getPrefix()
Get numeric prefix
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