PHP Class Scalr\Farm\Role\FarmRoleStorageConfig

Exibir arquivo Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$fs
$id
$index
$label
$mount
$mountOptions
$mountPoint
$reUse
$rebuild
$settings
$status
$type

Protected Properties

Property Type Description
$db
$farmRole

Public Methods

Method Description
__construct ( DBFarmRole $farmRole )
apply ( array $config ) : FarmRoleStorageConfig Apply properties from config to object
create ( FarmRoleStorageConfig $config ) Create new FarmRoleStorageConfig based on input config
delete ( $id = null )
getByFarmRole ( DBFarmRole $farmRole ) : FarmRoleStorageConfig[]
loadById ( $id )
save ( )
validate ( ) : string | true Validate current object

Method Details

__construct() public method

public __construct ( DBFarmRole $farmRole )
$farmRole DBFarmRole

apply() public method

Apply properties from config to object
public apply ( array $config ) : FarmRoleStorageConfig
$config array Storage config
return FarmRoleStorageConfig

create() public method

Create new FarmRoleStorageConfig based on input config
public create ( FarmRoleStorageConfig $config )
$config FarmRoleStorageConfig

delete() public method

public delete ( $id = null )

getByFarmRole() public static method

public static getByFarmRole ( DBFarmRole $farmRole ) : FarmRoleStorageConfig[]
$farmRole DBFarmRole
return FarmRoleStorageConfig[]

loadById() public method

public loadById ( $id )

save() public method

public save ( )

validate() public method

Validate current object
public validate ( ) : string | true
return string | true Return true if object valid or string on error

Property Details

$db protected_oe property

protected $db

$farmRole protected_oe property

protected $farmRole

$fs public_oe property

public $fs

$id public_oe property

public $id

$index public_oe property

public $index

$label public_oe property

public $label

$mount public_oe property

public $mount

$mountOptions public_oe property

public $mountOptions

$mountPoint public_oe property

public $mountPoint

$reUse public_oe property

public $reUse

$rebuild public_oe property

public $rebuild

$settings public_oe property

public $settings

$status public_oe property

public $status

$type public_oe property

public $type