CatPanels extends ActiveRecord
This is the model class for table "cat_panels".
Table of Contents
Properties
- $convert_currency : int
- $created_at : string|null
- $currency : Currency
- $fk_currency : int
- $fk_panel : int|null
- $fk_provider : int
- $fkPanel : Panels
- $fkProvider : Providers
- $fkSystemUnits : SystemUnits
- $height : float
- $id : int
- $price : float
- $status : int|null
- $thickness : float
- $type : string
- $updated_at : string|null
- $width : float
Methods
- fields() : array<string|int, mixed>
- Desc: Columnas a utilizar de los registros
- findActive() : CatPanels|null
- Desc: Encuentra y retorna el item activo.
- getCurrency() : ActiveQuery
- Obtiene query para [[Currency]]
- getFkPanel() : ActiveQuery
- Desc: Obtiene query para [[FkPanel]].
- getFkProvider() : ActiveQuery
- Desc: Obtiene query para [[FkProvider]].
- getFkSystemUnits() : ActiveQuery
- Desc: Obtiene query para [[FkSystemUnits]]
- getFormatValue() : array{width_m: mixed, width_inches: mixed, height_m: mixed, height_inches: mixed, thickness_m: mixed, thickness_inches: mixed}
- Desc: Retorna el tipo de valor esperado según el tipo de unidad.
- rules() : array<string|int, mixed>
- Desc: Reglas de validación.
- tableName() : string
- Desc: Nombre de la tabla de la base de datos.
Properties
$convert_currency
public
int
$convert_currency
Convertir divisa true/false, 1/0
$created_at
public
string|null
$created_at
$currency
public
Currency
$currency
$fk_currency
public
int
$fk_currency
$fk_panel
public
int|null
$fk_panel
$fk_provider
public
int
$fk_provider
$fkPanel
public
Panels
$fkPanel
$fkProvider
public
Providers
$fkProvider
$fkSystemUnits
public
SystemUnits
$fkSystemUnits
$height
public
float
$height
$id
public
int
$id
$price
public
float
$price
$status
public
int|null
$status
$thickness
public
float
$thickness
$type
public
string
$type
enum('Square')
$updated_at
public
string|null
$updated_at
$width
public
float
$width
Methods
fields()
Desc: Columnas a utilizar de los registros
public
fields() : array<string|int, mixed>
Notes: n/a
Ref: https://www.yiiframework.com/doc/api/2.0/yii-db-activerecord#fields()-detail
Date: 2025-08-04, Version: v0.2507.01
Example: n/a
Return values
array<string|int, mixed>findActive()
Desc: Encuentra y retorna el item activo.
public
static findActive(int $id) : CatPanels|null
Notes: n/a,
Ref: CatPanels
Date: 2025-08-04, Version: v0.2507.01
Example: n/a
Parameters
- $id : int
Tags
Return values
CatPanels|nullgetCurrency()
Obtiene query para [[Currency]]
public
getCurrency() : ActiveQuery
Notes: n/a,
Ref: https://www.yiiframework.com/doc/api/2.0/yii-db-activequery
Date: 2025-08-04, Version: v0.2507.01
Example: n/a
Return values
ActiveQuerygetFkPanel()
Desc: Obtiene query para [[FkPanel]].
public
getFkPanel() : ActiveQuery
Notes: n/a,
Ref: https://www.yiiframework.com/doc/api/2.0/yii-db-activequery
Date: 2025-08-04, Version: v0.2507.01
Example: n/a
Return values
ActiveQuerygetFkProvider()
Desc: Obtiene query para [[FkProvider]].
public
getFkProvider() : ActiveQuery
Notes: n/a,
Ref: https://www.yiiframework.com/doc/api/2.0/yii-db-activequery
Date: 2025-08-04, Version: v0.2507.01
Example: n/a
Return values
ActiveQuerygetFkSystemUnits()
Desc: Obtiene query para [[FkSystemUnits]]
public
getFkSystemUnits() : ActiveQuery
Notes: n/a,
Ref: https://www.yiiframework.com/doc/api/2.0/yii-db-activequery
Date: 2025-08-04, Version: v0.2507.01
Example: n/a
Return values
ActiveQuerygetFormatValue()
Desc: Retorna el tipo de valor esperado según el tipo de unidad.
public
getFormatValue() : array{width_m: mixed, width_inches: mixed, height_m: mixed, height_inches: mixed, thickness_m: mixed, thickness_inches: mixed}
Notes: n/a,
Ref: UnitsConverter
Date: 2025-08-04, Version: v0.2507.01
Example: n/a
Tags
Return values
array{width_m: mixed, width_inches: mixed, height_m: mixed, height_inches: mixed, thickness_m: mixed, thickness_inches: 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-04, Version: v0.2507.01
Example: n/a
Return values
array<string|int, mixed>tableName()
Desc: Nombre de la tabla de la base de datos.
public
static tableName() : string
Notes: n/a
Ref: https://www.yiiframework.com/doc/api/2.0/yii-db-activerecord#tableName()-detail
Date: 2025-08-04, Version: v0.2507.01
Example: n/a
Return values
string —Nombre de la tabla