PHP Class Scalr\Farm\Role\FarmRoleStorageConfig

Afficher le fichier Open project: scalr/scalr Class Usage Examples

Méthodes publiques

Свойство Type Description
$fs
$id
$index
$label
$mount
$mountOptions
$mountPoint
$reUse
$rebuild
$settings
$status
$type

Protected Properties

Свойство Type Description
$db
$farmRole

Méthodes publiques

Méthode 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 méthode

public __construct ( DBFarmRole $farmRole )
$farmRole DBFarmRole

apply() public méthode

Apply properties from config to object
public apply ( array $config ) : FarmRoleStorageConfig
$config array Storage config
Résultat FarmRoleStorageConfig

create() public méthode

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

delete() public méthode

public delete ( $id = null )

getByFarmRole() public static méthode

public static getByFarmRole ( DBFarmRole $farmRole ) : FarmRoleStorageConfig[]
$farmRole DBFarmRole
Résultat FarmRoleStorageConfig[]

loadById() public méthode

public loadById ( $id )

save() public méthode

public save ( )

validate() public méthode

Validate current object
public validate ( ) : string | true
Résultat 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