Documentation MyBrickStore

AdminController extends Controller
in package

Class AdminController

  • manages the back-office (administration panel) of the application
  • handles the main dashboard, global statistics, and supplier/factory order management
  • access to this controller is strictly restricted to users with the 'admin' role

Table of Contents

Properties

$trans  : array<string|int, mixed>
$admin_model  : AdminModel
$financial_model  : FinancialModel
$stock_model  : StockModel
$user_model  : UsersModel

Methods

__construct()  : mixed
initializes models and enforces security protocols
index()  : void
displays the dashboard with key performance indicators (kpis)
render()  : void
Renders a view file within a layout template.
runFactory()  : void
executes factory operations via the external java application
stats()  : void
renders the detailed statistics page
supplier()  : void
retrieves and structures supplier orders for display

Properties

$trans

protected array<string|int, mixed> $trans = []

Holds translation strings for the current language.

Methods

__construct()

initializes models and enforces security protocols

public __construct() : mixed

index()

displays the dashboard with key performance indicators (kpis)

public index() : void

render()

Renders a view file within a layout template.

public render(string $file[, array<string|int, mixed> $data = [] ][, string $template = 'default' ]) : void
Parameters
$file : string

The name of the view file (without .php extension).

$data : array<string|int, mixed> = []

Associative array of data to pass to the view.

$template : string = 'default'

The layout template to use (default: 'default').

runFactory()

executes factory operations via the external java application

public runFactory() : void

supplier()

retrieves and structures supplier orders for display

public supplier() : void

        
On this page

Search results