PHP Class Scalr_Account

Inheritance: extends Scalr_Model
ファイルを表示 Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$comments
$dtAdded
$name
$priority
$status

Protected Properties

Property Type Description
$dbMessageKeyNotFound
$dbPrimaryKey
$dbPropertyMap
$dbTableName

Public Methods

Method Description
checkLimit ( string $limitName, integer $limitValue ) : boolean
clearSettings ( $filter )
createEnvironment ( string $name ) : Scalr_Environment Creates a new environment assosiated with the account
createUser ( string $email, string $password, $type ) : Scalr_Account_User
delete ( $id = null )
getCostCenters ( ) : ArrayCollection Gets the list of the Cost Centers which correspond to Account
getLimits ( ) : array
getOwner ( ) : Scalr_Account_User
getSetting ( string $name ) : mixed Returns client setting value by name
getUsers ( )
init ( $className = null ) : Scalr_Account Init
initializeAcl ( ) Initializes ACL Roles for account
loadById ( $id ) : Scalr_Account
loadBySetting ( $name, $value ) : Scalr_Account
resetLimits ( ) *
setLimit ( $limitName, $limitValue )
setLimits ( array $limits )
setSetting ( string $name, mixed $value ) : Scalr_Account Set client setting
validateLimit ( string $limitName, string $limitValue )

Method Details

checkLimit() public method

public checkLimit ( string $limitName, integer $limitValue ) : boolean
$limitName string
$limitValue integer
return boolean

clearSettings() public method

public clearSettings ( $filter )

createEnvironment() public method

Creates a new environment assosiated with the account
public createEnvironment ( string $name ) : Scalr_Environment
$name string
return Scalr_Environment

createUser() public method

public createUser ( string $email, string $password, $type ) : Scalr_Account_User
$email string
$password string
return Scalr_Account_User

delete() public method

See also: Scalr_Model::delete()
public delete ( $id = null )

getCostCenters() public method

Gets the list of the Cost Centers which correspond to Account
public getCostCenters ( ) : ArrayCollection
return Scalr\Model\Collections\ArrayCollection Returns collection of the entities

getLimits() public method

public getLimits ( ) : array
return array $limits

getOwner() public method

public getOwner ( ) : Scalr_Account_User
return Scalr_Account_User

getSetting() public method

Returns client setting value by name
public getSetting ( string $name ) : mixed
$name string
return mixed $value

getUsers() public method

public getUsers ( )

init() public static method

Init
public static init ( $className = null ) : Scalr_Account
return Scalr_Account

initializeAcl() public method

Initializes ACL Roles for account
public initializeAcl ( )

loadById() public method

public loadById ( $id ) : Scalr_Account
return Scalr_Account

loadBySetting() public method

public loadBySetting ( $name, $value ) : Scalr_Account
return Scalr_Account

resetLimits() public method

*
public resetLimits ( )

setLimit() public method

public setLimit ( $limitName, $limitValue )

setLimits() public method

public setLimits ( array $limits )
$limits array

setSetting() public method

Set client setting
public setSetting ( string $name, mixed $value ) : Scalr_Account
$name string
$value mixed
return Scalr_Account

validateLimit() public method

public validateLimit ( string $limitName, string $limitValue )
$limitName string
$limitValue string

Property Details

$comments public_oe property

public $comments

$dbMessageKeyNotFound protected_oe property

protected $dbMessageKeyNotFound

$dbPrimaryKey protected_oe property

protected $dbPrimaryKey

$dbPropertyMap protected_oe property

protected $dbPropertyMap

$dbTableName protected_oe property

protected $dbTableName

$dtAdded public_oe property

public $dtAdded

$name public_oe property

public $name

$priority public_oe property

public $priority

$status public_oe property

public $status