Details extends Model
Modelo donde se valida y se carga la información de los detalles del material posterior a la optimización usado para generar un cutlist general (Perfiles).
Table of Contents
Properties
- $component : mixed
- $endOffset : mixed
- $groups : mixed
- $kerf : mixed
- $length : mixed
- $profileQty : mixed
- $startOffset : mixed
- $uuid : mixed
Methods
- getCatMaterial() : CatMaterialProfiles|null
- Desc: Retorna el material activo
- getMaterial() : MaterialProfiles|null
- Desc: Retorna el material por uuid
- getMaterialInfo() : array{uuid: string, name: string, description: string|null, supplier: string, unitPrice: float, material_type: string, quantity: mixed, totalPrice: float, currency: string, type: string, dimensions: array{length: float}, unit: string, component: mixed}
- 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
$endOffset
public
mixed
$endOffset
$groups
public
mixed
$groups
= []
$kerf
public
mixed
$kerf
$length
public
mixed
$length
$profileQty
public
mixed
$profileQty
$startOffset
public
mixed
$startOffset
$uuid
public
mixed
$uuid
Methods
getCatMaterial()
Desc: Retorna el material activo
public
getCatMaterial(mixed $id) : CatMaterialProfiles|null
Notes: n/a, Ref: n/a
Date: 2025-08-05, Version: v0.2507.01
Example: n/a
Parameters
- $id : mixed
Return values
CatMaterialProfiles|nullgetMaterial()
Desc: Retorna el material por uuid
public
getMaterial(string $uuid) : MaterialProfiles|null
Notes: n/a, Ref: n/a
Date: 2025-08-05, Version: v0.2507.01
Example: n/a
Parameters
- $uuid : string
Return values
MaterialProfiles|nullgetMaterialInfo()
Desc: Retorna la información del material en un array de datos.
public
getMaterialInfo() : array{uuid: string, name: string, description: string|null, supplier: string, unitPrice: float, material_type: string, quantity: mixed, totalPrice: float, currency: string, type: string, dimensions: array{length: float}, unit: string, component: mixed}
Notes: n/a, Ref: n/a
Date: 2025-08-05, Version: v0.2507.01
Example: n/a
Return values
array{uuid: string, name: string, description: string|null, supplier: string, unitPrice: float, material_type: string, quantity: mixed, totalPrice: float, currency: string, type: string, dimensions: array{length: float}, unit: string, component: mixed}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