PHP Class Scalr\Farm\Role\FarmRoleStorage

Afficher le fichier Open project: scalr/scalr Class Usage Examples

Protected Properties

Свойство Type Description
$db ADODB_mysqli
$farmRole

Méthodes publiques

Méthode Description
__construct ( DBFarmRol\DBFarmRole $dbFarmRole )
getConfigs ( ) : FarmRoleStorageConfig[]
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

Method Details

__construct() public méthode

public __construct ( DBFarmRol\DBFarmRole $dbFarmRole )
$dbFarmRole DBFarmRol\DBFarmRole

getConfigs() public méthode

public getConfigs ( ) : FarmRoleStorageConfig[]
Résultat FarmRoleStorageConfig[]

getVolumes() public méthode

public getVolumes ( $serverIndex = null )

getVolumesConfigs() public méthode

public getVolumesConfigs ( DBServe\DBServer $dbServer, $isHostInit = true )
$dbServer DBServe\DBServer

setConfigs() public méthode

Save storage configs
public setConfigs ( array $configs, boolean $validate = true )
$configs array Array of storage config
$validate boolean optional If true validate config before save

setVolumes() public méthode

*
public setVolumes ( DBServe\DBServer $server, $volumes )
$server DBServe\DBServer

validateConfigs() public méthode

Validate storage configs
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

Property Details

$db protected_oe property

protected ADODB_mysqli $db
Résultat ADODB_mysqli

$farmRole protected_oe property

protected $farmRole