Свойство | Type | Description | |
---|---|---|---|
$db | ADODB_mysqli | ||
$farmRole |
Méthode | Description | |
---|---|---|
__construct ( DBFarmRol\DBFarmRole $dbFarmRole ) | ||
getConfigs ( ) : |
||
getVolumes ( $serverIndex = null ) | ||
getVolumesConfigs ( DBServe\DBServer $dbServer, $isHostInit = true ) | ||
setConfigs ( array $configs, boolean $validate = true ) | Save storage configs | |
setVolumes ( DBServe\DBServer $server, $volumes ) | * | |
validateConfigs ( array $configs ) : array | Validate storage configs |
public __construct ( DBFarmRol\DBFarmRole $dbFarmRole ) | ||
$dbFarmRole | DBFarmRol\DBFarmRole |
public getConfigs ( ) : |
||
Résultat |
public getVolumesConfigs ( DBServe\DBServer $dbServer, $isHostInit = true ) | ||
$dbServer | DBServe\DBServer |
public setConfigs ( array $configs, boolean $validate = true ) | ||
$configs | array | Array of storage config |
$validate | boolean | optional If true validate config before save |
public setVolumes ( DBServe\DBServer $server, $volumes ) | ||
$server | DBServe\DBServer |
public validateConfigs ( array $configs ) : array | ||
$configs | array | Array of storage configs, structure is defined in FarmRoleStorageConfig::apply |
Résultat | array | Array of errors [index => error message] or empty array if configs are valid |