PHP Class Xpressengine\Storage\RoundRobinDistributor

Author: XE Team (developers) ([email protected])
Inheritance: implements Xpressengine\Storage\Distributor
Datei anzeigen Open project: xpressengine/xpressengine Class Usage Examples

Protected Properties

Property Type Description
$config array filesystem config
$conn Xpressengine\Database\VirtualConnectionInterface database connection instance
$table string table name

Public Methods

Method Description
__construct ( array $config, Xpressengine\Database\VirtualConnectionInterface $conn ) constructor
allot ( File $file ) : string allot storage disk

Private Methods

Method Description
lastRecord ( ) : array | null get last table record
next ( string $name ) : string disk in the next

Method Details

__construct() public method

constructor
public __construct ( array $config, Xpressengine\Database\VirtualConnectionInterface $conn )
$config array filesystem config
$conn Xpressengine\Database\VirtualConnectionInterface database connection instance

allot() public method

allot storage disk
public allot ( File $file ) : string
$file Symfony\Component\HttpFoundation\File\File file object
return string

Property Details

$config protected_oe property

filesystem config
protected array $config
return array

$conn protected_oe property

database connection instance
protected VirtualConnectionInterface,Xpressengine\Database $conn
return Xpressengine\Database\VirtualConnectionInterface

$table protected_oe property

table name
protected string $table
return string