Function | Description |
---|---|
user()
|
Returns current user |
user_status(user)
|
Returns the user status (free , busy , dinner , break )Example
|
user_online_status(user)
|
Returns the user online status (true or false )Example
|
hash(algo, data)
|
Executes a one-way hashing of data with usage of specified hash-function (md5 , sha1 , sha256 ). The value returns as hex-tring lower case.Example
|
last_run(interval, triggerCode, findByEntity)
|
Returns information about the last start of trigger; if trigger starts for the first time the function returns null , more details. Available only in triggers. |
rand(min, max)
|
Returns random whole number of specified range [min , max ] |
rand_string(length, alphabet)
|
Returns random symbols sequence of specified length, containing only symbols of the specified set (alphabet ). By default there is used set containing only english letters lower case and numbers.Example
|
local_time(source, default)
|
Local time according to current settings. Parameter source can be equals to CustomerAddress , CustomerPhone , OrderDeliveryAddress , StoreAddress or phone number as string.Example
|
is_working_time(dateTime)
|
Function checks whether the dateTime value is working time and returns result (true or false ). As a dateTime the function can take DteTime object or string, whose format corresponds to php format of strtotime function. By default the current date and time is used.Example
|
round(value, precision, method)
|
Returns a rounded value with specified precision. The first value is the number to be rounded, the second is the rounding precision (0, if to the whole), the third is the rounding mode ( common is the usual mode, ceil always rounds up, floor always rounds down)Example
|
is_valid_email(email)
|
Checks validity of an e-mail address. Returns true or false .Example
|