mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
be239896d3
API Remove filesystem sync API to handle file manipulations
30 lines
613 B
PHP
30 lines
613 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Filesystem\Storage;
|
|
|
|
/**
|
|
* Provides a mechanism for suggesting filename alterations to a file
|
|
*
|
|
* Does not actually check for existence of the file, but rather comes up with as many suggestions for
|
|
* the given file as possible to a finite limit.
|
|
*
|
|
* @package framework
|
|
* @subpackage filesystem
|
|
*/
|
|
interface AssetNameGenerator extends \Iterator {
|
|
|
|
/**
|
|
* Construct a generator for the given filename
|
|
*
|
|
* @param string $filename
|
|
*/
|
|
public function __construct($filename);
|
|
|
|
/**
|
|
* Number of attempts allowed
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getMaxTries();
|
|
}
|