PHP Class DBRole

显示文件 Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$addedByEmail
$addedByUserId
$catId
$clientId
$dateAdded
$description
$dtLastUsed
$envId
$generation
$id
$imageId
$instanceType *Temp
$isDeprecated
$isDevel
$isQuickStart
$isScalarized
$name
$origin
$osId

Public Methods

Method Description
__construct ( $id )
__getNewRoleObject ( ) : Role
clearProperties ( $filter = '' )
cloneRole ( string $newRoleName, Scalr_Account_User $user, integer $envId ) : integer
createFromBundleTask ( BundleTask $BundleTask )
getBehaviors ( )
getCategoryName ( )
getDbMsrBehavior ( )
getEnvironmentObject ( ) : Scalr_Environment
getFarmRolesCount ( integer $envId = null ) : integer Gets farm role's count
getFarms ( integer $envId = null ) : array Gets an array of farms' ids
getOs ( ) : Scalr\Model\Entity\Os
getProperties ( $filter = '' )
getProperty ( $name )
getScripts ( )
getSecurityRules ( )
hasBehavior ( $behavior )
loadByFilter ( array $filter )
loadById ( integer $id ) : DBRole
remove ( )
save ( )
setBehaviors ( $behaviors )
setProperties ( $properties )
setProperty ( $name, $value )
setScripts ( array $scripts )
syncAnalyticsTags ( ) Synchronizes analytics role related tags

Private Methods

Method Description
getVersionInfo ( $v )

Method Details

__construct() public method

public __construct ( $id )

__getNewRoleObject() public method

public __getNewRoleObject ( ) : Role
return Scalr\Model\Entity\Role

clearProperties() public method

public clearProperties ( $filter = '' )

cloneRole() public method

public cloneRole ( string $newRoleName, Scalr_Account_User $user, integer $envId ) : integer
$newRoleName string
$user Scalr_Account_User
$envId integer
return integer

createFromBundleTask() public static method

public static createFromBundleTask ( BundleTask $BundleTask )
$BundleTask BundleTask

getBehaviors() public method

public getBehaviors ( )

getCategoryName() public method

public getCategoryName ( )

getDbMsrBehavior() public method

public getDbMsrBehavior ( )

getEnvironmentObject() public method

public getEnvironmentObject ( ) : Scalr_Environment
return Scalr_Environment Enter description here ...

getFarmRolesCount() public method

Gets farm role's count
public getFarmRolesCount ( integer $envId = null ) : integer
$envId integer optional Current enviroment id
return integer Returns farm role's count which uses current role

getFarms() public method

Gets an array of farms' ids
public getFarms ( integer $envId = null ) : array
$envId integer optional Current enviroment id
return array Returns array of farms' ids which uses current role

getOs() public method

public getOs ( ) : Scalr\Model\Entity\Os
return Scalr\Model\Entity\Os

getProperties() public method

public getProperties ( $filter = '' )

getProperty() public method

public getProperty ( $name )

getScripts() public method

public getScripts ( )

getSecurityRules() public method

public getSecurityRules ( )

hasBehavior() public method

public hasBehavior ( $behavior )

loadByFilter() public static method

public static loadByFilter ( array $filter )
$filter array

loadById() public static method

public static loadById ( integer $id ) : DBRole
$id integer
return DBRole

remove() public method

Deprecation:
public remove ( )

save() public method

public save ( )

setBehaviors() public method

public setBehaviors ( $behaviors )

setProperties() public method

public setProperties ( $properties )

setProperty() public method

public setProperty ( $name, $value )

setScripts() public method

public setScripts ( array $scripts )
$scripts array

syncAnalyticsTags() public method

Synchronizes analytics role related tags
public syncAnalyticsTags ( )

Property Details

$addedByEmail public_oe property

public $addedByEmail

$addedByUserId public_oe property

public $addedByUserId

$catId public_oe property

public $catId

$clientId public_oe property

public $clientId

$dateAdded public_oe property

public $dateAdded

$description public_oe property

public $description

$dtLastUsed public_oe property

public $dtLastUsed

$envId public_oe property

public $envId

$generation public_oe property

public $generation

$id public_oe property

public $id

$imageId public_oe property

public $imageId

$instanceType public_oe property

*Temp
public $instanceType

$isDeprecated public_oe property

public $isDeprecated

$isDevel public_oe property

public $isDevel

$isQuickStart public_oe property

public $isQuickStart

$isScalarized public_oe property

public $isScalarized

$name public_oe property

public $name

$origin public_oe property

public $origin

$osId public_oe property

public $osId