Property | Type | Description | |
---|---|---|---|
$configurationVars | array | Array of predefined constants, which change default UI behavior This data should be synchronized with /core/variablefield.js | |
$configurationVarsDefaults | array | Default values for UI config vars | |
$doNotValidateNameCaseSensitivity | boolean | This flag was developed for old API. If it's true and CaseSensitivity validation was failed, we log message to SystemLog instead of Exception. If should be removed in next major version of Scalr. |
Method | Description | |
---|---|---|
__construct ( integer $accountId, integer $envId, string $scope = ScopeInterface::SCOPE_SCALR ) | ||
_getValues ( integer $roleId, integer $farmId, integer $farmRoleId, string $serverId = '' ) : array | ||
getErrorMessage ( ) : string | Return first error message from set of validation errors | |
getUiDefaults ( ) : array | Return default configuration vars for UI as name => value | |
getValues ( $roleId, $farmId, $farmRoleId, $serverId = '' ) | ||
listServerGlobalVariables ( DBServer $dbServer, $includeSystem = false, AbstractServerEvent $event = null ) | ||
listVariables ( $roleId, $farmId, $farmRoleId, $serverId = '' ) | ||
setValues ( array | ArrayObject $variables, integer $roleId, integer $farmId, integer $farmRoleId, string $serverId = '', boolean $throwException = true, boolean $skipValidation = false ) : array | boolean | ||
validateValues ( array | ArrayObject $variables, integer $roleId, integer $farmId, integer $farmRoleId, string $serverId = "" ) : array | boolean | Validate values |
Method | Description | |
---|---|---|
setError ( string $name, string $property, string $msg ) | Set error (errors are saved to this->errors) |
Method | Description | |
---|---|---|
errorHandler ( integer $errno, string $errstr ) | Callback function for set_error_handler |
public getErrorMessage ( ) : string | ||
return | string |
public getUiDefaults ( ) : array | ||
return | array |
public static listServerGlobalVariables ( DBServer $dbServer, $includeSystem = false, AbstractServerEvent $event = null ) | ||
$dbServer | DBServer | |
$event | AbstractServerEvent |
public listVariables ( $roleId, $farmId, $farmRoleId, $serverId = '' ) |
public setValues ( array | ArrayObject $variables, integer $roleId, integer $farmId, integer $farmRoleId, string $serverId = '', boolean $throwException = true, boolean $skipValidation = false ) : array | boolean | ||
$variables | array | ArrayObject | |
$roleId | integer | optional |
$farmId | integer | optional |
$farmRoleId | integer | optional |
$serverId | string | optional |
$throwException | boolean | optional |
$skipValidation | boolean | optional |
return | array | boolean |
public validateValues ( array | ArrayObject $variables, integer $roleId, integer $farmId, integer $farmRoleId, string $serverId = "" ) : array | boolean | ||
$variables | array | ArrayObject | |
$roleId | integer | |
$farmId | integer | |
$farmRoleId | integer | |
$serverId | string | |
return | array | boolean | Returns true if no errors or array of errors [name of variable => [name of property => [errors]] |
public array $configurationVars | ||
return | array |
public array $configurationVarsDefaults | ||
return | array |
public bool $doNotValidateNameCaseSensitivity | ||
return | boolean |