PHP 클래스 Scalr\Farm\Role\FarmRoleStorageConfig

파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$fs
$id
$index
$label
$mount
$mountOptions
$mountPoint
$reUse
$rebuild
$settings
$status
$type

보호된 프로퍼티들

프로퍼티 타입 설명
$db
$farmRole

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

public __construct ( DBFarmRole $farmRole )
$farmRole DBFarmRole

apply() 공개 메소드

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

create() 공개 메소드

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

delete() 공개 메소드

public delete ( $id = null )

getByFarmRole() 공개 정적인 메소드

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

loadById() 공개 메소드

public loadById ( $id )

save() 공개 메소드

public save ( )

validate() 공개 메소드

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

프로퍼티 상세

$db 보호되어 있는 프로퍼티

protected $db

$farmRole 보호되어 있는 프로퍼티

protected $farmRole

$fs 공개적으로 프로퍼티

public $fs

$id 공개적으로 프로퍼티

public $id

$index 공개적으로 프로퍼티

public $index

$label 공개적으로 프로퍼티

public $label

$mount 공개적으로 프로퍼티

public $mount

$mountOptions 공개적으로 프로퍼티

public $mountOptions

$mountPoint 공개적으로 프로퍼티

public $mountPoint

$reUse 공개적으로 프로퍼티

public $reUse

$rebuild 공개적으로 프로퍼티

public $rebuild

$settings 공개적으로 프로퍼티

public $settings

$status 공개적으로 프로퍼티

public $status

$type 공개적으로 프로퍼티

public $type