scenarioExpression
Table of Contents
Properties
-
$_changed
: mixed
-
$expression
: mixed
-
$id
: mixed
-
$options
: mixed
-
$order
: mixed
-
$scenarioSubElement_id
: mixed
-
$subtype
: mixed
-
$type
: mixed
Methods
-
age()
: mixed
-
all()
: mixed
-
average()
: mixed
-
averageBetween()
: mixed
-
averageTemporal()
: mixed
-
averageTemporalBetween()
: mixed
-
avg()
: mixed
-
byElement()
: mixed
-
byId()
: mixed
-
byscenarioSubElementId()
: mixed
-
checkBackground()
: mixed
-
collectDate()
: mixed
-
color_gradient()
: mixed
-
copy()
: mixed
-
createAndExec()
: mixed
-
duration()
: mixed
-
durationBetween()
: mixed
-
emptyOptions()
: mixed
-
eqEnable()
: mixed
-
execute()
: mixed
-
export()
: mixed
-
formatTime()
: mixed
-
genericType()
: mixed
-
getAllId()
: mixed
-
getChanged()
: mixed
-
getDatesFromPeriod()
: mixed
-
getExpression()
: mixed
-
getExpressionOptions()
: mixed
-
getId()
: mixed
-
getOptions()
: mixed
-
getOrder()
: mixed
-
getRequestTags()
: mixed
-
getScenarioSubElement_id()
: mixed
-
getSubElement()
: mixed
-
getSubtype()
: mixed
-
getType()
: mixed
-
humanAction()
: mixed
-
lastBetween()
: mixed
-
lastChangeStateDuration()
: mixed
-
lastCommunication()
: mixed
-
lastScenarioExecution()
: mixed
-
lastStateDuration()
: mixed
-
max()
: mixed
-
maxBetween()
: mixed
-
median()
: mixed
-
min()
: mixed
-
minBetween()
: mixed
-
name()
: mixed
-
odd()
: mixed
-
randomColor()
: mixed
-
randText()
: mixed
-
refresh()
: mixed
-
remove()
: mixed
-
resetRepeatIfStatus()
: mixed
-
round()
: mixed
-
save()
: mixed
-
scenario()
: mixed
-
searchExpression()
: mixed
-
setChanged()
: mixed
-
setExpression()
: mixed
-
setId()
: mixed
-
setLog()
: mixed
-
setOptions()
: mixed
-
setOrder()
: mixed
-
setScenarioSubElement_id()
: mixed
-
setSubtype()
: mixed
-
setTags()
: mixed
-
setType()
: mixed
-
stateChanges()
: mixed
-
stateChangesBetween()
: mixed
-
stateDuration()
: mixed
-
statistics()
: mixed
-
statisticsBetween()
: mixed
-
sun()
: mixed
-
tag()
: string
-
tendance()
: mixed
-
time()
: mixed
-
time_between()
: mixed
-
time_diff()
: mixed
-
time_op()
: mixed
-
trigger()
: mixed
-
triggerChange()
: mixed
-
triggerId()
: mixed
-
triggerValue()
: mixed
-
value()
: mixed
-
valueDate()
: mixed
-
variable()
: mixed
-
wait()
: mixed
$_changed
private
mixed
$_changed
= \false
$expression
private
mixed
$expression
$id
private
mixed
$id
$options
private
mixed
$options
$order
private
mixed
$order
$scenarioSubElement_id
private
mixed
$scenarioSubElement_id
$subtype
private
mixed
$subtype
$type
private
mixed
$type
age()
public
static age([mixed $_cmd_id = '' ]) : mixed
Parameters
-
$_cmd_id
: mixed
= ''
-
all()
public
static all() : mixed
average()
public
static average(mixed $_cmd_id[, mixed $_period = '1 hour' ][, mixed $_round = 1 ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_period
: mixed
= '1 hour'
-
-
$_round
: mixed
= 1
-
averageBetween()
public
static averageBetween(mixed $_cmd_id, mixed $_startDate, mixed $_endDate[, mixed $_round = 1 ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_startDate
: mixed
-
-
$_endDate
: mixed
-
-
$_round
: mixed
= 1
-
averageTemporal()
public
static averageTemporal(mixed $_cmd_id[, mixed $_period = '1 hour' ][, mixed $_round = 1 ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_period
: mixed
= '1 hour'
-
-
$_round
: mixed
= 1
-
averageTemporalBetween()
public
static averageTemporalBetween(mixed $_cmd_id, mixed $_startDate, mixed $_endDate[, mixed $_round = 1 ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_startDate
: mixed
-
-
$_endDate
: mixed
-
-
$_round
: mixed
= 1
-
avg()
public
static avg() : mixed
byElement()
public
static byElement(mixed $_element_id) : mixed
Parameters
-
$_element_id
: mixed
-
byId()
public
static byId(mixed $_id) : mixed
Parameters
-
$_id
: mixed
-
byscenarioSubElementId()
public
static byscenarioSubElementId(mixed $_scenarioSubElementId) : mixed
Parameters
-
$_scenarioSubElementId
: mixed
-
checkBackground()
public
checkBackground() : mixed
collectDate()
public
static collectDate(mixed $_cmd_id[, mixed $_format = 'Y-m-d H:i:s' ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_format
: mixed
= 'Y-m-d H:i:s'
-
color_gradient()
public
static color_gradient(mixed $_from_color, mixed $_to_color, mixed $_min, mixed $_max, mixed $_value) : mixed
Parameters
-
$_from_color
: mixed
-
-
$_to_color
: mixed
-
-
$_min
: mixed
-
-
$_max
: mixed
-
-
$_value
: mixed
-
copy()
public
copy(mixed $_scenarioSubElement_id) : mixed
Parameters
-
$_scenarioSubElement_id
: mixed
-
createAndExec()
public
static createAndExec(mixed $_type, mixed $_cmd[, mixed $_options = null ]) : mixed
Parameters
-
$_type
: mixed
-
-
$_cmd
: mixed
-
-
$_options
: mixed
= null
-
duration()
public
static duration(mixed $_cmd_id, mixed $_value[, mixed $_period = '1 hour' ][, mixed $_unit = 60 ][, mixed $_operator = '=' ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_value
: mixed
-
-
$_period
: mixed
= '1 hour'
-
-
$_unit
: mixed
= 60
-
-
$_operator
: mixed
= '='
-
durationBetween()
public
static durationBetween(mixed $_cmd_id, mixed $_value, mixed $_startDate, mixed $_endDate[, mixed $_unit = 60 ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_value
: mixed
-
-
$_startDate
: mixed
-
-
$_endDate
: mixed
-
-
$_unit
: mixed
= 60
-
emptyOptions()
public
emptyOptions() : mixed
eqEnable()
public
static eqEnable(mixed $_eqLogic_id) : mixed
Parameters
-
$_eqLogic_id
: mixed
-
execute()
public
execute([mixed &$scenario = null ]) : mixed
Parameters
-
$scenario
: mixed
= null
-
export()
public
export() : mixed
public
static formatTime(mixed $_time) : mixed
Parameters
-
$_time
: mixed
-
genericType()
public
static genericType(mixed $_genericType[, mixed $_object = -1 ][, mixed $_default = '' ]) : mixed
Parameters
-
$_genericType
: mixed
-
-
$_object
: mixed
= -1
-
-
$_default
: mixed
= ''
-
getAllId()
public
getAllId() : mixed
getChanged()
public
getChanged() : mixed
getDatesFromPeriod()
public
static getDatesFromPeriod([mixed $_period = '1 hour' ]) : mixed
Parameters
-
$_period
: mixed
= '1 hour'
-
getExpression()
public
getExpression() : mixed
getExpressionOptions()
public
static getExpressionOptions(mixed $_expression, mixed $_options) : mixed
Parameters
-
$_expression
: mixed
-
-
$_options
: mixed
-
getId()
public
getId() : mixed
getOptions()
public
getOptions([mixed $_key = '' ][, mixed $_default = '' ]) : mixed
Parameters
-
$_key
: mixed
= ''
-
-
$_default
: mixed
= ''
-
getOrder()
public
getOrder() : mixed
public
static getRequestTags(mixed $_expression) : mixed
Parameters
-
$_expression
: mixed
-
getScenarioSubElement_id()
public
getScenarioSubElement_id() : mixed
getSubElement()
public
getSubElement() : mixed
getSubtype()
public
getSubtype() : mixed
getType()
public
getType() : mixed
humanAction()
public
static humanAction(mixed $_action) : mixed
Parameters
-
$_action
: mixed
-
lastBetween()
public
static lastBetween(mixed $_cmd_id, mixed $_startDate, mixed $_endDate) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_startDate
: mixed
-
-
$_endDate
: mixed
-
lastChangeStateDuration()
public
static lastChangeStateDuration(mixed $_cmd_id, mixed $_value) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_value
: mixed
-
lastCommunication()
public
static lastCommunication(mixed $_eqLogic_id[, mixed $_format = 'Y-m-d H:i:s' ]) : mixed
Parameters
-
$_eqLogic_id
: mixed
-
-
$_format
: mixed
= 'Y-m-d H:i:s'
-
lastScenarioExecution()
public
static lastScenarioExecution(mixed $_scenario_id) : mixed
Parameters
-
$_scenario_id
: mixed
-
lastStateDuration()
public
static lastStateDuration(mixed $_cmd_id[, mixed $_value = null ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_value
: mixed
= null
-
max()
public
static max(mixed $_cmd_id[, mixed $_period = '1 hour' ][, mixed $_round = 1 ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_period
: mixed
= '1 hour'
-
-
$_round
: mixed
= 1
-
maxBetween()
public
static maxBetween(mixed $_cmd_id, mixed $_startDate, mixed $_endDate[, mixed $_round = 1 ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_startDate
: mixed
-
-
$_endDate
: mixed
-
-
$_round
: mixed
= 1
-
public
static median() : mixed
min()
public
static min(mixed $_cmd_id[, mixed $_period = '1 hour' ][, mixed $_round = 1 ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_period
: mixed
= '1 hour'
-
-
$_round
: mixed
= 1
-
minBetween()
public
static minBetween(mixed $_cmd_id, mixed $_startDate, mixed $_endDate[, mixed $_round = 1 ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_startDate
: mixed
-
-
$_endDate
: mixed
-
-
$_round
: mixed
= 1
-
name()
public
static name(mixed $_type, mixed $_cmd_id) : mixed
Parameters
-
$_type
: mixed
-
-
$_cmd_id
: mixed
-
odd()
public
static odd(mixed $_value) : mixed
Parameters
-
$_value
: mixed
-
randomColor()
public
static randomColor(mixed $_rangeLower, mixed $_rangeHighter) : mixed
Parameters
-
$_rangeLower
: mixed
-
-
$_rangeHighter
: mixed
-
randText()
public
static randText(mixed $_sValue) : mixed
Parameters
-
$_sValue
: mixed
-
refresh()
public
refresh() : mixed
remove()
public
remove() : mixed
resetRepeatIfStatus()
public
resetRepeatIfStatus() : mixed
round()
public
static round(mixed $_value[, mixed $_decimal = 0 ]) : mixed
Parameters
-
$_value
: mixed
-
-
$_decimal
: mixed
= 0
-
save()
public
save() : mixed
scenario()
public
static scenario(mixed $_scenario) : mixed
Parameters
-
$_scenario
: mixed
-
searchExpression()
public
static searchExpression(mixed $_expression[, mixed $_options = null ][, mixed $_and = true ]) : mixed
Parameters
-
$_expression
: mixed
-
-
$_options
: mixed
= null
-
-
$_and
: mixed
= true
-
setChanged()
public
setChanged(mixed $_changed) : mixed
Parameters
-
$_changed
: mixed
-
setExpression()
public
setExpression(mixed $_expression) : mixed
Parameters
-
$_expression
: mixed
-
setId()
public
setId(mixed $_id) : mixed
Parameters
-
$_id
: mixed
-
setLog()
public
setLog(mixed &$_scenario, mixed $log) : mixed
Parameters
-
$_scenario
: mixed
-
-
$log
: mixed
-
setOptions()
public
setOptions(mixed $_key, mixed $_value) : mixed
Parameters
-
$_key
: mixed
-
-
$_value
: mixed
-
setOrder()
public
setOrder(mixed $_order) : mixed
Parameters
-
$_order
: mixed
-
setScenarioSubElement_id()
public
setScenarioSubElement_id(mixed $_scenarioSubElement_id) : mixed
Parameters
-
$_scenarioSubElement_id
: mixed
-
setSubtype()
public
setSubtype(mixed $_subtype) : mixed
Parameters
-
$_subtype
: mixed
-
public
static setTags(mixed &$_expression[, mixed &$_scenario = null ][, mixed $_quote = false ][, mixed $_nbCall = 0 ]) : mixed
Parameters
-
$_expression
: mixed
-
-
$_scenario
: mixed
= null
-
-
$_quote
: mixed
= false
-
-
$_nbCall
: mixed
= 0
-
setType()
public
setType(mixed $_type) : mixed
Parameters
-
$_type
: mixed
-
stateChanges()
public
static stateChanges(mixed $_cmd_id[, mixed $_value = null ][, mixed $_period = '1 hour' ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_value
: mixed
= null
-
-
$_period
: mixed
= '1 hour'
-
stateChangesBetween()
public
static stateChangesBetween(mixed $_cmd_id, mixed $_value, mixed $_startDate[, mixed $_endDate = null ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_value
: mixed
-
-
$_startDate
: mixed
-
-
$_endDate
: mixed
= null
-
stateDuration()
public
static stateDuration(mixed $_cmd_id[, mixed $_value = null ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_value
: mixed
= null
-
statistics()
public
static statistics(mixed $_cmd_id, mixed $_calc[, mixed $_period = '1 hour' ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_calc
: mixed
-
-
$_period
: mixed
= '1 hour'
-
statisticsBetween()
public
static statisticsBetween(mixed $_cmd_id, mixed $_calc, mixed $_startDate, mixed $_endDate) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_calc
: mixed
-
-
$_startDate
: mixed
-
-
$_endDate
: mixed
-
sun()
public
static sun(mixed $_name) : mixed
Parameters
-
$_name
: mixed
-
tag()
public
static tag(null|scenario &$_scenario, string $_name[, string $_default = '' ]) : string
Parameters
-
$_scenario
: null|scenario
-
-
$_name
: string
-
-
$_default
: string
= ''
-
tendance()
public
static tendance(mixed $_cmd_id[, mixed $_period = '1 hour' ][, mixed $_threshold = '' ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_period
: mixed
= '1 hour'
-
-
$_threshold
: mixed
= ''
-
time()
public
static time(mixed $_value) : mixed
Parameters
-
$_value
: mixed
-
time_between()
public
static time_between(mixed $_time, mixed $_start, mixed $_end) : mixed
Parameters
-
$_time
: mixed
-
-
$_start
: mixed
-
-
$_end
: mixed
-
time_diff()
public
static time_diff(mixed $_date1, mixed $_date2[, mixed $_format = 'd' ][, mixed $_rnd = 2 ]) : mixed
Parameters
-
$_date1
: mixed
-
-
$_date2
: mixed
-
-
$_format
: mixed
= 'd'
-
-
$_rnd
: mixed
= 2
-
time_op()
public
static time_op(mixed $_time[, mixed $_value = 0 ]) : mixed
Parameters
-
$_time
: mixed
-
-
$_value
: mixed
= 0
-
trigger()
public
static trigger([mixed $_name = '' ][, mixed &$_scenario = null ]) : mixed
Parameters
-
$_name
: mixed
= ''
-
-
$_scenario
: mixed
= null
-
triggerChange()
public
static triggerChange(mixed $_during[, mixed &$_scenario = null ]) : mixed
Parameters
-
$_during
: mixed
-
-
$_scenario
: mixed
= null
-
triggerId()
public
static triggerId([mixed &$_scenario = null ]) : mixed
Parameters
-
$_scenario
: mixed
= null
-
triggerValue()
public
static triggerValue([mixed &$_scenario = null ]) : mixed
Parameters
-
$_scenario
: mixed
= null
-
value()
public
static value(mixed $_cmd_id) : mixed
Parameters
-
$_cmd_id
: mixed
-
valueDate()
public
static valueDate(mixed $_cmd_id[, mixed $_format = 'Y-m-d H:i:s' ]) : mixed
Parameters
-
$_cmd_id
: mixed
-
-
$_format
: mixed
= 'Y-m-d H:i:s'
-
variable()
public
static variable(mixed $_name[, mixed $_default = '' ]) : mixed
Parameters
-
$_name
: mixed
-
-
$_default
: mixed
= ''
-
wait()
public
static wait(mixed $_condition[, mixed $_timeout = 7200 ]) : mixed
Parameters
-
$_condition
: mixed
-
-
$_timeout
: mixed
= 7200
-