PHP Class Scalr\Upgrade\Updates\Update20150505143635

Inheritance: extends Scalr\Upgrade\AbstractUpdate, implements Scalr\Upgrade\SequenceInterface
Show file Open project: scalr/scalr

Protected Properties

Property Type Description
$dbservice
$depends
$description
$ignoreChanges
$uuid

Public Methods

Method Description
getNumberStages ( )

Protected Methods

Method Description
createAclPermissionRule ( string $accountRoleId, string $permFlag, integer $resource, string $permName, boolean $isDenyRole ) Insert account level permission value
isApplied1 ( $stage )
isApplied3 ( $stage )
isApplied4 ( $stage )
isApplied5 ( $stage )
isApplied6 ( $stage )
isApplied7 ( $stage )
run1 ( $stage )
run2 ( )
run3 ( $stage )
run4 ( $stage )
run5 ( $stage )
run6 ( $stage )
run7 ( )
run8 ( )
run9 ( )
validateBefore1 ( $stage )

Private Methods

Method Description
checkAppliedForPermission ( string $resourceName, string $permissionName ) : boolean Check if stage is applied for the specified resource and permission
createNewFullAccessPermission ( string $resourceName, string $permissionName ) Adds a new Full Access Role Permission
isGrantedAccountPermission ( string $accountRoleId, string $resourceId, string $permissionId ) : string Gets granted value for the specified permission of account level ACL role
isGrantedAccountResource ( string $accountRoleId, string $resourceId ) : string Gets granted value for the specified resource of account level ACL role
setGrantedAccountPermission ( string $accountRoleId, integer $resourceId, integer $permissionId, string $granted ) Sets granted value for the specified account level ACL permission
setGrantedAccountResource ( string $accountRoleId, integer $resourceId, string $granted ) Sets granted value for the specified account level ACL resource

Method Details

createAclPermissionRule() protected method

Create allow permission if base acl role is forbidden and permFlag is allowed, and deny permission if base acl role is allowed and permFlag is denied. If permFlag is null, do nothing
protected createAclPermissionRule ( string $accountRoleId, string $permFlag, integer $resource, string $permName, boolean $isDenyRole )
$accountRoleId string The identifier of the ACL role on account
$permFlag string The permission value
$resource integer The identifier of the ACL resource
$permName string The identifier of the ACL permission
$isDenyRole boolean Whether the account level role derived from full access role

getNumberStages() public method

public getNumberStages ( )

isApplied1() protected method

protected isApplied1 ( $stage )

isApplied3() protected method

protected isApplied3 ( $stage )

isApplied4() protected method

protected isApplied4 ( $stage )

isApplied5() protected method

protected isApplied5 ( $stage )

isApplied6() protected method

protected isApplied6 ( $stage )

isApplied7() protected method

protected isApplied7 ( $stage )

run1() protected method

protected run1 ( $stage )

run2() protected method

protected run2 ( )

run3() protected method

protected run3 ( $stage )

run4() protected method

protected run4 ( $stage )

run5() protected method

protected run5 ( $stage )

run6() protected method

protected run6 ( $stage )

run7() protected method

protected run7 ( )

run8() protected method

protected run8 ( )

run9() protected method

protected run9 ( )

validateBefore1() protected method

protected validateBefore1 ( $stage )

Property Details

$dbservice protected property

protected $dbservice

$depends protected property

protected $depends

$description protected property

protected $description

$ignoreChanges protected property

protected $ignoreChanges

$uuid protected property

protected $uuid