Documentación de Proyecto Sincro

layoutUser implements JsonSerializable

Entidad que representa a la tabla layoutUser del sistema

Tags
requires

PHP 8.0 Uso de tipado de propiedades.

see
layoutUserItem

Table of Contents

Interfaces

JsonSerializable

Properties

$id  : mixed
$id_user  : mixed
$items  : array<string|int, mixed>
$nombre  : mixed

Methods

__construct()  : mixed
Constructor de la clase
equals()  : bool
fromArray()  : self
Constructor de desde un array
getId()  : mixed
getIdUser()  : mixed
getItems()  : array<string|int, mixed>
getNombre()  : mixed
hashCode()  : string
Creacion de hashCode para este objeto
jsonSerialize()  : array<string|int, mixed>
Construccion de json de la clase

Properties

Methods

__construct()

Constructor de la clase

public __construct(mixed $id, mixed $id_user, mixed $nombre, array<string|int, mixed> $items) : mixed
Parameters
$id : mixed

: id unico de la clase

$id_user : mixed

: id del usuarioWeb dueño

$nombre : mixed

: nombre del layout

$items : array<string|int, mixed>

equals()

public equals(mixed $obj) : bool
Parameters
$obj : mixed

: objeto a comparar

Return values
bool —

: si el objeto es de la misma clase y tienen mismo hashcode

fromArray()

Constructor de desde un array

public static fromArray(array<string|int, mixed> $data, array<string|int, mixed> $items) : self
Parameters
$data : array<string|int, mixed>

: datos provenientes de BD para construir

$items : array<string|int, mixed>

: Items asociados a dicho layout

Return values
self —

nueva

getItems()

public getItems() : array<string|int, mixed>
Return values
array<string|int, mixed>

hashCode()

Creacion de hashCode para este objeto

public hashCode() : string
Tags
see
hash()

y sha256

Return values
string —

hashcode generado

jsonSerialize()

Construccion de json de la clase

public jsonSerialize() : array<string|int, mixed>
Tags
see
JsonSerializable

Documentacion oficial de PHP

used-by

api.php/json_encode() Para el tratamiento de mensajes

Return values
array<string|int, mixed>

        
On this page

Search results