PHP Class Scalr_UI_Controller_Farms_Builder

Inheritance: extends Scalr_UI_Controller
Show file Open project: scalr/scalr

Public Properties

Property Type Description
$errors

Public Methods

Method Description
getFarm2 ( $farmId )
hasAccess ( )
xBuildAction ( )
xGetInstanceTypeHourlyRateAction ( string $platform, string $cloudLocation, string $instanceType, string $osFamily ) : float
xGetRoleChefSettingsAction ( integer $roleId )
xGetScriptsAction ( integer $roleId )
xGetStorageConfigAction ( )
xGetTeamsAction ( )
xListElasticLoadBalancersAction ( string $cloudLocation, string $placement = null )
xListSecurityGroupsAction ( string $platform, string $cloudLocation, JsonData $filters = null ) Lists security groups
xRemoveStorageVolumeAction ( )

Private Methods

Method Description
checkBounds ( string $farmRoleId, string $name, string | number $boundMin, string | number $boundMax, string $validator, boolean $allowEqual = false, mixed $errorMessage ) : array | false Validate bounds.
checkFarmConfigurationIntegrity ( integer $farmId, array $farmSettings, array $roles = [], array $rolesToRemove = [] ) : boolean Checks farm configuration integrity
checkInteger ( string $farmRoleId, string $name, string $value, string $title = null, string $min = null, string $max = null ) : integer | false Validate integer and set builder error if value is not valid
checkString ( string $farmRoleId, string $name, string $value, string $errorMessage, string $regexp ) : string | false Validate string using regular expression
getInitialSecurityGroupsList ( DBFarmRole $dbFarmRole )
getInstanceTypeHourlyRate ( string $platform, string $cloudLocation, string $instanceType, string $osFamily ) : float Gets instance type houry rate
isFarmConfigurationValid ( $farmId, array $farmSettings, array $roles = [] ) : boolean
isFarmRoleConfigurationValid ( )
setBuildError ( $setting, $message, $roleId = null, $isFinal = false )

Method Details

getFarm2() public method

public getFarm2 ( $farmId )

hasAccess() public method

See also: Scalr_UI_Controller::hasAccess()
public hasAccess ( )

xBuildAction() public method

public xBuildAction ( )

xGetInstanceTypeHourlyRateAction() public method

public xGetInstanceTypeHourlyRateAction ( string $platform, string $cloudLocation, string $instanceType, string $osFamily ) : float
$platform string
$cloudLocation string
$instanceType string
$osFamily string
return float

xGetRoleChefSettingsAction() public method

public xGetRoleChefSettingsAction ( integer $roleId )
$roleId integer

xGetScriptsAction() public method

public xGetScriptsAction ( integer $roleId )
$roleId integer

xGetStorageConfigAction() public method

xGetTeamsAction() public method

public xGetTeamsAction ( )

xListElasticLoadBalancersAction() public method

public xListElasticLoadBalancersAction ( string $cloudLocation, string $placement = null )
$cloudLocation string Ec2 region
$placement string optional Placement

xListSecurityGroupsAction() public method

Lists security groups
public xListSecurityGroupsAction ( string $platform, string $cloudLocation, JsonData $filters = null )
$platform string Platform
$cloudLocation string Cloud location
$filters Scalr\UI\Request\JsonData

xRemoveStorageVolumeAction() public method

Property Details

$errors public property

public $errors