utils
in package
Table of Contents
Properties
- $jeedom_encryption : mixed
- $properties : mixed
Methods
- a2o() : mixed
- attrChanged() : mixed
- decrypt() : mixed
- encrypt() : mixed
- executeAsync() : void
- This function allows asynchronous execution of any class function.
- getEncryptionPassword() : mixed
- getJsonAttr() : mixed
- o2a() : array<string|int, mixed>
- processJsonObject() : mixed
- setJsonAttr() : mixed
Properties
$jeedom_encryption
private
static mixed
$jeedom_encryption
= \null
$properties
private
static mixed
$properties
= array()
Methods
a2o()
public
static a2o(mixed &$_object, mixed $_data) : mixed
Parameters
- $_object : mixed
- $_data : mixed
attrChanged()
public
static attrChanged(mixed $_changed, mixed $_old, mixed $_new) : mixed
Parameters
- $_changed : mixed
- $_old : mixed
- $_new : mixed
decrypt()
public
static decrypt(mixed $ciphertext[, mixed $password = null ]) : mixed
Parameters
- $ciphertext : mixed
- $password : mixed = null
encrypt()
public
static encrypt(mixed $plaintext[, mixed $password = null ]) : mixed
Parameters
- $plaintext : mixed
- $password : mixed = null
executeAsync()
This function allows asynchronous execution of any class function.
public
static executeAsync(string $class, string $method[, array<string|int, mixed>|null $options = null ][, string $datetime = 'now' ]) : void
A cron will be created to execute it immediately (by default) or at the given datetime. To pass arguments to your function, you should pass an array of values in $options
Parameters
- $class : string
-
A class name
- $method : string
-
The method name
- $options : array<string|int, mixed>|null = null
-
An array of options that will be passed to the cron
- $datetime : string = 'now'
-
Any English textual datetime description that can be parsed by strtotime()
Tags
getEncryptionPassword()
public
static getEncryptionPassword() : mixed
getJsonAttr()
public
static getJsonAttr(mixed &$_attr[, mixed $_key = '' ][, mixed $_default = '' ]) : mixed
Parameters
- $_attr : mixed
- $_key : mixed = ''
- $_default : mixed = ''
o2a()
public
static o2a(object $_object[, bool $_noToArray = false ]) : array<string|int, mixed>
Parameters
- $_object : object
- $_noToArray : bool = false
Tags
Return values
array<string|int, mixed>processJsonObject()
public
static processJsonObject(mixed $_class, mixed $_ajaxList[, mixed $_dbList = null ][, mixed $_remove = true ]) : mixed
Parameters
- $_class : mixed
- $_ajaxList : mixed
- $_dbList : mixed = null
- $_remove : mixed = true
setJsonAttr()
public
static setJsonAttr(mixed $_attr, mixed $_key[, mixed $_value = null ]) : mixed
Parameters
- $_attr : mixed
- $_key : mixed
- $_value : mixed = null