PHP 클래스 Phue\SoftwareUpdate

파일 보기 프로젝트 열기: sqmk/phue

보호된 프로퍼티들

프로퍼티 타입 설명
$attributes stdClass Sofware Update attributes
$client Client Phue client

공개 메소드들

메소드 설명
__construct ( stdClass $attributes, Client $client ) Construct a Phue SoftwareUpdate object
checkForUpdate ( ) : self Check for update
checkingForUpdate ( ) : boolean Checking for update?
disableInstallNotification ( ) : self Disable the install notification
getReleaseNotesBrief ( ) : string Get release notes brief
getReleaseNotesUrl ( ) : string Get release notes URL
getUpdatableLights ( ) : array Get updatable lights
getUpdateState ( ) : integer Get update state
installUpdates ( ) : self Install updates
isBridgeUpdatable ( ) : boolean Is bridge updatable?
isInstallNotificationEnabled ( ) : boolean Is the install notification enabled?

메소드 상세

__construct() 공개 메소드

Construct a Phue SoftwareUpdate object
public __construct ( stdClass $attributes, Client $client )
$attributes stdClass SoftwareUpdate attributes
$client Client Phue client

checkForUpdate() 공개 메소드

Check for update
public checkForUpdate ( ) : self
리턴 self This object

checkingForUpdate() 공개 메소드

Checking for update?
public checkingForUpdate ( ) : boolean
리턴 boolean True if checking, false if not

disableInstallNotification() 공개 메소드

Disable the install notification
public disableInstallNotification ( ) : self
리턴 self This object

getReleaseNotesBrief() 공개 메소드

Get release notes brief
public getReleaseNotesBrief ( ) : string
리턴 string Release notes

getReleaseNotesUrl() 공개 메소드

Get release notes URL
public getReleaseNotesUrl ( ) : string
리턴 string Release notes URL

getUpdatableLights() 공개 메소드

Get updatable lights
public getUpdatableLights ( ) : array
리턴 array List of updatable light ids

getUpdateState() 공개 메소드

Get update state
public getUpdateState ( ) : integer
리턴 integer Update state

installUpdates() 공개 메소드

Install updates
public installUpdates ( ) : self
리턴 self This object

isBridgeUpdatable() 공개 메소드

Is bridge updatable?
public isBridgeUpdatable ( ) : boolean
리턴 boolean True if updatable, false if not

isInstallNotificationEnabled() 공개 메소드

Is the install notification enabled?
public isInstallNotificationEnabled ( ) : boolean
리턴 boolean True if completed, false if not

프로퍼티 상세

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

Sofware Update attributes
protected stdClass $attributes
리턴 stdClass

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

Phue client
protected Client,phue $client
리턴 Client