Class

ezpDfsMySQLiClusterGateway

class ezpDfsMySQLiClusterGateway extends ezpClusterGateway

DFS/MySQLi cluster gateway

Methods

__construct(array $params = array())

Instantiate a gateway with the database parameters.

from ezpClusterGateway
connect()

Creates the necessary database connection

array|false fetchFileMetadata(string $filepath)

Fetches file metadata for $filepath

void passthrough($filepath, $filesize, $offset = false, $length = false)

Passes the $filepath data through

close()

Closes any connection that should be closed

retrieve($filename)

from ezpClusterGateway
static  setGatewayClass(string $gatewayClass)

Sets the gateway class to $gatewayClass

from ezpClusterGateway
static ezpClusterGateway getGateway()

Returns an instance of the gateway class depending on {@link setGatewayClass()}

from ezpClusterGateway

Details

in ezpClusterGateway at line 76
public __construct(array $params = array())

Instantiate a gateway with the database parameters.

Parameters

array $params Database parameters.

at line 16
public connect()

Creates the necessary database connection

The database connexion must be usable as is after return, meaning that database connection, charset choice must be set

Exceptions

RuntimeException if connection failed

at line 50
public array|false fetchFileMetadata(string $filepath)

Fetches file metadata for $filepath

Parameters

string $filepath

Return Value

array|false

at line 68
public void passthrough($filepath, $filesize, $offset = false, $length = false)

Passes the $filepath data through

Parameters

$filepath
$filesize
$offset
$length

Return Value

void

at line 86
public close()

Closes any connection that should be closed

in ezpClusterGateway at line 137
public retrieve($filename)

Parameters

$filename

in ezpClusterGateway at line 340
static public setGatewayClass(string $gatewayClass)

Sets the gateway class to $gatewayClass

Parameters

string $gatewayClass

in ezpClusterGateway at line 350
static public ezpClusterGateway getGateway()

Returns an instance of the gateway class depending on {@link setGatewayClass()}

Return Value

ezpClusterGateway