PHP Класс Phue\SoftwareUpdate

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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