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
current()
No description
key()
No description
next()
No description
rewind()
No description
valid()
No description
int
getMaxTries()
Number of attempts allowed