NoticeController extends Controller
Table of Contents
Properties
- $freeAccessActions : mixed
Methods
- actionIndex() : array<string|int, array{product_id: int, product_name: string, stock: int, min_stock: int, title: string, message: string, type: string, alert_type: string, mat_type?: string}>
- Desc: Retorna lista de elementos de las vistas product_out_of_stock_view y product_low_stock_view de la base de Datos.
- actionOptions() : void
- Desc: Método para brindar información al fronend sobre opciones de comunicación. Funciona con método OPTIONS.
- behaviors() : array<string|int, mixed>
- Desc: Retorna lista de comportamientos que el controlador debe de seguir.
- init() : void
- Desc: Inicializa configuraciones para el controlador.
Properties
$freeAccessActions
public
mixed
$freeAccessActions
= ['options', 'index']
Methods
actionIndex()
Desc: Retorna lista de elementos de las vistas product_out_of_stock_view y product_low_stock_view de la base de Datos.
public
actionIndex() : array<string|int, array{product_id: int, product_name: string, stock: int, min_stock: int, title: string, message: string, type: string, alert_type: string, mat_type?: string}>
Notes: Hace uso de \yii\db\Query()
Ref: https://www.yiiframework.com/doc/api/2.0/yii-db-query
Date: 2025-09-30, Version: v0.2509.26
Example: n/a
Return values
array<string|int, array{product_id: int, product_name: string, stock: int, min_stock: int, title: string, message: string, type: string, alert_type: string, mat_type?: string}>actionOptions()
Desc: Método para brindar información al fronend sobre opciones de comunicación. Funciona con método OPTIONS.
public
actionOptions() : void
Notes: n/a,
Ref: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Methods/OPTIONS
Date: 2025-09-30, Version: v0.2509.26
Example: n/a
behaviors()
Desc: Retorna lista de comportamientos que el controlador debe de seguir.
public
behaviors() : array<string|int, mixed>
Notes: Contiene excepciones de auht, auhtenticator, filtros de cors, métodos HTTP permitidos.
Ref: https://www.yiiframework.com/doc/api/2.0/yii-rest-controller#behaviors()-detail
Date: 2025-09-30, Version: v0.2509.26
Example: n/a
Return values
array<string|int, mixed> —Configuraciones del comportamiento
init()
Desc: Inicializa configuraciones para el controlador.
public
init() : void
Notes: Se deshabilita la sesión (porque se comporta como un API rest).
Ref: https://www.yiiframework.com/doc/api/2.0/yii-rest-controller#init()-detail
Date: 2025-08-08, Version: v0.2507.01
Example: n/a