프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
setError ( string $name, string $property, string $msg ) | Set error (errors are saved to this->errors) |
메소드 | 설명 | |
---|---|---|
errorHandler ( integer $errno, string $errstr ) | Callback function for set_error_handler |
public getErrorMessage ( ) : string | ||
리턴 | string |
public getUiDefaults ( ) : array | ||
리턴 | array |
public static listServerGlobalVariables ( DBServer $dbServer, $includeSystem = false, AbstractServerEvent $event = null ) | ||
$dbServer | DBServer | |
$event | AbstractServerEvent |
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 |
리턴 | 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 | |
리턴 | array | boolean | Returns true if no errors or array of errors [name of variable => [name of property => [errors]] |
public array $configurationVars | ||
리턴 | array |
public array $configurationVarsDefaults | ||
리턴 | array |
public bool $doNotValidateNameCaseSensitivity | ||
리턴 | boolean |