Constants

C_USER_LOGIN

C_USER_LOGIN

C_USER_ID

C_USER_ID

C_USER_MAIL

C_USER_MAIL

C_USER_BROWSER

C_USER_BROWSER

C_CLIENT

C_CLIENT

C_CLIENT_USER

C_CLIENT_USER

C_APP

C_APP

TIMESTAMP

TIMESTAMP

USER_ID

USER_ID

USER_SIGNATURE

USER_SIGNATURE

CLIENT_ID

CLIENT_ID

CLIENT_SIGNATURE

CLIENT_SIGNATURE

APP_ID

APP_ID

APP_SIGNATURE

APP_SIGNATURE

Properties

$name

$name : 

Type

$timeout

$timeout : 

Type

$token

$token : 

Type

$gcmApiKey

$gcmApiKey : 

Type

$sendAlerts

$sendAlerts : 

Type

$context

$context : 

Type

$headers

$headers : 

Type

$user

$user : 

Type

$register

$register : 

Type

$endpoints

$endpoints : 

Type

$timestamp

$timestamp : 

Type

$userId

$userId : 

Type

$userSignature

$userSignature : 

Type

$clientId

$clientId : 

Type

$clientSignature

$clientSignature : 

Type

$appId

$appId : 

Type

$appSignature

$appSignature : 

Type

Methods

__construct()

__construct(  $app) 

Parameters

$app

getUser()

getUser() 

setUser()

setUser(  $id) 

Parameters

$id

hasContext()

hasContext() 

sendAlerts()

sendAlerts() 

getRegisterType()

getRegisterType() 

encrypt()

encrypt(  $input) 

Parameters

$input

decrypt()

decrypt(  $input) 

Parameters

$input

load()

load() 

isAccessibleEndpoint()

isAccessibleEndpoint(  $uri) 

Parameters

$uri

authenticate()

authenticate() 

isActive()

isActive() 

getHeaders()

getHeaders() 

registerGoogleCloudMessage()

registerGoogleCloudMessage(  $gcmRegistrationId) 

Parameters

$gcmRegistrationId

sendNotification()

sendNotification(  $user,   $message) 

Parameters

$user
$message

authenticateForRegister()

authenticateForRegister() 

loadParamsByHeaders()

loadParamsByHeaders() 

requiredParamsIsFilled()

requiredParamsIsFilled() 

signature()

signature(  $timestamp,   $id,   $signature) 

Parameters

$timestamp
$id
$signature

sanitizeParam()

sanitizeParam(  $param,   $value) 

Parameters

$param
$value