layoutUserItem
in package
implements
JsonSerializable
Entidad que representa a la tabla layoutUser_item del sistema
Tags
Table of Contents
Interfaces
- JsonSerializable
Properties
- $agrupacion : string
- $custom_segundos : int
- $fecha_fin : string
- $fecha_ini : string
- $h : int
- $huecos : int
- $id : int
- $layout_id : int
- $nombre : string
- $series : array<string|int, mixed>
- $tipo_grafico : int
- $tiposec_id : int
- $tiposec_nombre : string
- $umbral_max : float|null
- $umbral_min : float|null
- $w : int
- $x : int
- $y : int
Methods
- __construct() : mixed
- Constructor de clase
- fromArray() : self
- Constructor de layoutUserItem desde un array
- getCustomSegundos() : int
- getFechaFin() : string
- getFechaIni() : string
- getH() : int
- getHuecos() : int
- getId() : int
- getLayoutId() : int
- getNombre() : string
- getTipoGrafico() : int
- getTiposecId() : int
- getTiposecNombre() : string
- getW() : int
- getX() : int
- getY() : int
- jsonSerialize() : array<string|int, mixed>
- Construccion de json de la clase
Properties
$agrupacion
private
string
$agrupacion
$custom_segundos
private
int
$custom_segundos
$fecha_fin
private
string
$fecha_fin
$fecha_ini
private
string
$fecha_ini
$h
private
int
$h
$huecos
private
int
$huecos
$id
private
int
$id
$layout_id
private
int
$layout_id
$nombre
private
string
$nombre
$series
private
array<string|int, mixed>
$series
$tipo_grafico
private
int
$tipo_grafico
$tiposec_id
private
int
$tiposec_id
$tiposec_nombre
private
string
$tiposec_nombre
$umbral_max
private
float|null
$umbral_max
$umbral_min
private
float|null
$umbral_min
$w
private
int
$w
$x
private
int
$x
$y
private
int
$y
Methods
__construct()
Constructor de clase
public
__construct(int $id, int $layout_id, string $nombre, int $x, int $y, int $w, int $h, int $tiposec_id, string $tiposec_nombre, int $tipo_grafico, string $fecha_ini, string $fecha_fin, int $huecos, int $custom_segundos, string $agrupacion, float|null $umbral_max, float|null $umbral_min, array<string|int, mixed> $series) : mixed
Parameters
- $id : int
-
: id unico de la clase
- $layout_id : int
-
: id del layout al que pertenece
- $nombre : string
-
: nombre del layout
- $x : int
-
: coordenadas x del widget
- $y : int
-
: coordenadas y del widget
- $w : int
-
: parametro w del widget
- $h : int
-
: parametro h del widget
- $tiposec_id : int
-
: id del tiposec para busqueda
- $tiposec_nombre : string
-
: nombre del tiposec
- $tipo_grafico : int
-
: tipo de grafico del widget
- $fecha_ini : string
-
: rango de fecha
- $fecha_fin : string
-
: rango de fecha
- $huecos : int
-
: huecos rellenados @see frontend/pages/test1.php
- $custom_segundos : int
-
: tiempo custom de los huecos
- $agrupacion : string
-
: tiempo para agrupaciones
- $umbral_max : float|null
-
: umbral maximo para grafica
- $umbral_min : float|null
-
: umbral minimo para grafica
- $series : array<string|int, mixed>
-
: series activas que posee
fromArray()
Constructor de layoutUserItem desde un array
public
static fromArray(array<string|int, mixed> $data, array<string|int, mixed> $series) : self
Parameters
- $data : array<string|int, mixed>
-
: datos provenientes de BD para construir el Item
- $series : array<string|int, mixed>
-
: Series asociados a dicho item
Return values
self —nuevo layoutUserItem
getCustomSegundos()
public
getCustomSegundos() : int
Return values
intgetFechaFin()
public
getFechaFin() : string
Return values
stringgetFechaIni()
public
getFechaIni() : string
Return values
stringgetH()
public
getH() : int
Return values
intgetHuecos()
public
getHuecos() : int
Return values
intgetId()
public
getId() : int
Return values
intgetLayoutId()
public
getLayoutId() : int
Return values
intgetNombre()
public
getNombre() : string
Return values
stringgetTipoGrafico()
public
getTipoGrafico() : int
Return values
intgetTiposecId()
public
getTiposecId() : int
Return values
intgetTiposecNombre()
public
getTiposecNombre() : string
Return values
stringgetW()
public
getW() : int
Return values
intgetX()
public
getX() : int
Return values
intgetY()
public
getY() : int
Return values
intjsonSerialize()
Construccion de json de la clase
public
jsonSerialize() : array<string|int, mixed>