NextDom\Managers\HistoryManager
Class HistoryManager
Synopsis
class HistoryManager
extends BaseManager
{
- // constants
- const CLASS_NAME = 'history';
- const DB_CLASS_NAME = '`history`';
- // Inherited constants from BaseManager
- const CLASS_NAME = '';
- const DB_CLASS_NAME = '``';
- // Inherited members from BaseManager
- protected static $baseSQL;
- protected static $prefixedBaseSQL;
- // methods
- public static void copyHistoryToCmd()
- public static array|mixed|null byCmdIdDatetime()
- public static void archive()
- public static bool removes()
- public static array|mixed|null getPlurality()
- public static float|int|null getTemporalAvg()
- public static array all()
- public static array getStatistics()
- public static float|int getTendance()
- public static false|int stateDuration()
- public static false|int lastStateDuration()
- public static false|int lastChangeStateDuration()
- public static array stateChanges()
- public static array|mixed|null emptyHistory()
- public static array getHistoryFromCalcul()
- private static array timeValues()
- // Inherited methods from BaseManager
- protected static string getBaseSQL()
- protected static string getPrefixedBaseSQL()
Hierarchy
Constants
Name | Value |
---|---|
CLASS_NAME | 'history' |
DB_CLASS_NAME | '`history`' |
CLASS_NAME | '' |
DB_CLASS_NAME | '``' |
Members
protected
- $baseSQL — array
- $prefixedBaseSQL — array
Methods
private
public
- all()
- archive() — Archive les données de history dans historyArch
- byCmdIdDatetime()
- copyHistoryToCmd()
- emptyHistory()
- getHistoryFromCalcul()
- getPlurality()
- getStatistics()
- getTemporalAvg()
- getTendance()
- lastChangeStateDuration() — Fonction renvoie la durée depuis le dernier changement d'état à la valeur passée en paramètre
- lastStateDuration()
- removes()
- stateChanges()
- stateDuration()
Inherited from NextDom\Managers\Parents\BaseManager
protected
- getBaseSQL() — Get base of Select SQL
- getPrefixedBaseSQL() — Get prefixed base of Select SQL