DetailsHardware extends Model
Modelo donde se valida y se carga la información de los detalles del material hardware usado para generar un cutlist general.
Table of Contents
Properties
- $component : mixed
- $quantity : mixed
- $type : mixed
- $uuid : mixed
Methods
- getCatMaterial() : CatHardware|null
- Desc: Retorna el material activo
- getMaterial() : Hardware|null
- Desc: Retorna el material por uuid
- getMaterialInfo() : array{uuid: string, name: string, description: string, supplier: string, unitPrice: string, component: string, quantity: int, totalPrice: float, currency: string, type: string}
- Desc: Retorna la información del material en un array de datos.
- rules() : array<string|int, mixed>
- Desc: Reglas de validación.
Properties
$component
public
mixed
$component
$quantity
public
mixed
$quantity
$type
public
mixed
$type
$uuid
public
mixed
$uuid
Methods
getCatMaterial()
Desc: Retorna el material activo
public
getCatMaterial(int $id) : CatHardware|null
Notes: n/a, Ref: n/a
Date: 2025-08-05, Version: v0.2507.01
Example: n/a
Parameters
- $id : int
-
ID del material
Return values
CatHardware|nullgetMaterial()
Desc: Retorna el material por uuid
public
getMaterial(string $uuid) : Hardware|null
Notes: n/a, Ref: n/a
Date: 2025-08-05, Version: v0.2507.01
Example: n/a
Parameters
- $uuid : string
Return values
Hardware|nullgetMaterialInfo()
Desc: Retorna la información del material en un array de datos.
public
getMaterialInfo() : array{uuid: string, name: string, description: string, supplier: string, unitPrice: string, component: string, quantity: int, totalPrice: float, currency: string, type: string}
Notes: n/a, Ref: n/a
Date: 2025-08-05, Version: v0.2507.01
Example: n/a
Tags
Return values
array{uuid: string, name: string, description: string, supplier: string, unitPrice: string, component: string, quantity: int, totalPrice: float, currency: string, type: string}rules()
Desc: Reglas de validación.
public
rules() : array<string|int, mixed>
Notes: n/a
Ref: https://www.yiiframework.com/doc/api/2.0/yii-base-model#rules()-detail
Date: 2025-08-05, Version: v0.2507.01
Example: n/a