Properties

$cmd_id

$cmd_id :

Type

$value

$value :

Type

$datetime

$datetime :

Type

$_changed

$_changed :

Type

$_tableName

$_tableName :

Type

Methods

exportToCSV()

exportToCSV(  $histories)

Parameters

$histories

copyHistoryToCmd()

copyHistoryToCmd(  $_source_id,  $_target_id)

Parameters

$_source_id
$_target_id

byCmdIdDatetime()

byCmdIdDatetime(  $_cmd_id,  $_startTime,  $_endTime = null,  $_oldValue = null)

Parameters

$_cmd_id
$_startTime
$_endTime
$_oldValue

archive()

archive()

Archive les données de history dans historyArch

all()

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

Parameters

$_cmd_id
$_startTime
$_endTime
$_groupingType

Returns

array —

des valeurs de l'équipement

getOldestValue()

getOldestValue(  $_cmd_id)

Parameters

$_cmd_id

removes()

removes(  $_cmd_id,  $_startTime = null,  $_endTime = null)

Parameters

$_cmd_id
$_startTime
$_endTime

getPlurality()

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

Parameters

$_cmd_id
$_startTime
$_endTime
$_period
$_offset

getTemporalAvg()

getTemporalAvg(  $_cmd_id,  $_startTime,  $_endTime)

Parameters

$_cmd_id
$_startTime
$_endTime

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,  $_noCalcul = false,  $_groupingType = null)

Parameters

$_strcalcul
$_dateStart
$_dateEnd
$_noCalcul
$_groupingType

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

getChanged()

getChanged()

setChanged()

setChanged(  $_changed)

Parameters

$_changed