BaseModel
in package
AbstractYes
Base model DB.
Tags
Attributes
- #[AllowDynamicProperties]
Table of Contents
Properties
- $allowedOrders : array<string|int, mixed>
- Allowed orders in MySQL, MariaDB.
- $Container : Container
- $Db : Db
Methods
- __construct() : mixed
- Base model class constructor.
Properties
$allowedOrders
Allowed orders in MySQL, MariaDB.
protected
array<string|int, mixed>
$allowedOrders
= ['ASC', 'DESC', 'RAND', 'RAND()']
$Container
protected
Container
$Container
$Db
protected
Db
$Db
Methods
__construct()
Base model class constructor.
public
__construct(Container $Container) : mixed
Parameters
- $Container : Container
-
The DI container class.