Properties

$cmd_id

$cmd_id : 

Type

$value

$value : 

Type

$datetime

$datetime : 

Type

$_tableName

$_tableName : 

Type

Methods

copyHistoryToCmd()

copyHistoryToCmd(  $_source_id,   $_target_id) 

Parameters

$_source_id
$_target_id

byCmdIdDatetime()

byCmdIdDatetime(  $_cmd_id,   $_datetime) 

Parameters

$_cmd_id
$_datetime

archive()

archive() 

Archive les données de history dans historyArch

all()

all(  $_cmd_id,   $_startTime = null,   $_endTime = null) : array

Parameters

$_cmd_id
$_startTime
$_endTime

Returns

array —

des valeurs de l'équipement

getPlurality()

getPlurality(  $_cmd_id,   $_startTime = null,   $_endTime = null,   $_period = 'day',   $_offset) 

Parameters

$_cmd_id
$_startTime
$_endTime
$_period
$_offset

getStatistique()

getStatistique(  $_cmd_id,   $_startTime,   $_endTime) 

Parameters

$_cmd_id
$_startTime
$_endTime

getTendance()

getTendance(  $_cmd_id,   $_startTime,   $_endTime) 

Parameters

$_cmd_id
$_startTime
$_endTime

stateDuration()

stateDuration(  $_cmd_id,   $_value = null) 

Parameters

$_cmd_id
$_value

lastStateDuration()

lastStateDuration(  $_cmd_id,   $_value = null) 

Parameters

$_cmd_id
$_value

lastChangeStateDuration()

lastChangeStateDuration(  $_cmd_id,   $_value) 

Fonction renvoie la durée depuis le dernier changement d'état à la valeur passée en paramètre

Parameters

$_cmd_id
$_value

stateChanges()

stateChanges(integer  $_cmd_id, \string/float  $_value = null, string  $_startTime = null, string  $_endTime = null) : array

Parameters

integer $_cmd_id
\string/float $_value
string $_startTime
string $_endTime

Throws

\Exception

Returns

array

emptyHistory()

emptyHistory(  $_cmd_id,   $_date = '') 

Parameters

$_cmd_id
$_date

getHistoryFromCalcul()

getHistoryFromCalcul(  $_strcalcul,   $_dateStart = null,   $_dateEnd = null,   $_allowZero = true) 

Parameters

$_strcalcul
$_dateStart
$_dateEnd
$_allowZero

save()

save(  $_cmd = null,   $_direct = false) 

Parameters

$_cmd
$_direct

remove()

remove() 

getCmd_id()

getCmd_id() 

getCmd()

getCmd() 

getValue()

getValue() 

getDatetime()

getDatetime() 

getTableName()

getTableName() 

setTableName()

setTableName(  $_tableName) 

Parameters

$_tableName

setCmd_id()

setCmd_id(  $cmd_id) 

Parameters

$cmd_id

setValue()

setValue(  $value) 

Parameters

$value

setDatetime()

setDatetime(  $datetime) 

Parameters

$datetime