ApiDoc BACKEND

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}>

        
On this page

Search results