\MobileDevice

Implements the support to register mobile devices as clients on REST-Like API bus.

Summary

Methods
Properties
Constants
isActive()
register()
unregister()
randomPrivateKey()
validatePrivateKey()
formatPrivateKey()
getRegisteredDevice()
registerDeviceAccess()
registerGoogleCloudMessage()
sendNotification()
No public properties found
NO_USER
BY_LOGIN
BY_MAIL
BY_ID
No protected methods found
No protected properties found
N/A
No private methods found
$active
N/A

Constants

NO_USER

NO_USER

BY_LOGIN

BY_LOGIN

BY_MAIL

BY_MAIL

BY_ID

BY_ID

Properties

$active

$active : 

Type

Methods

isActive()

isActive() 

register()

register(  $name,   $user = FALSE) 

Parameters

$name
$user

unregister()

unregister(  $id,   $user = FALSE) 

Parameters

$id
$user

randomPrivateKey()

randomPrivateKey() 

validatePrivateKey()

validatePrivateKey(  $pk) 

Parameters

$pk

formatPrivateKey()

formatPrivateKey(  $pk) 

Parameters

$pk

getRegisteredDevice()

getRegisteredDevice(  $id) 

Parameters

$id

registerDeviceAccess()

registerDeviceAccess(  $id) 

Parameters

$id

registerGoogleCloudMessage()

registerGoogleCloudMessage(  $id,   $gcm) 

Parameters

$id
$gcm

sendNotification()

sendNotification(  $apiKey,   $ids,   $message) 

Parameters

$apiKey
$ids
$message