diff options
author | Freya Murphy <freya@freyacat.org> | 2024-07-08 17:22:30 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-07-08 17:22:30 -0400 |
commit | 8a2c577823b69117af8eda9b1a46bfbcae8153c6 (patch) | |
tree | e89dee0f77377a665c78d8a3cea6012888d9af73 /src/web/core/_model.php | |
parent | fix2 (diff) | |
download | website-8a2c577823b69117af8eda9b1a46bfbcae8153c6.tar.gz website-8a2c577823b69117af8eda9b1a46bfbcae8153c6.tar.bz2 website-8a2c577823b69117af8eda9b1a46bfbcae8153c6.zip |
a few fixes, just a few....
Diffstat (limited to 'src/web/core/_model.php')
-rw-r--r-- | src/web/core/_model.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/web/core/_model.php b/src/web/core/_model.php index 4c27b1b..57127de 100644 --- a/src/web/core/_model.php +++ b/src/web/core/_model.php @@ -2,19 +2,20 @@ abstract class Model { // the main model // shared by all controllers and models - public $main; - public $load; + public Main_model $main; + public Loader $load; // the database - public $db; + public DatabaseHelper $db; - private $config; + private mixed $config; /** * Creates a model * @param Loader $load - the main loader object - */ - function __construct($load, $main = FALSE) { + * @param ?Main_model $main + */ + function __construct(Loader $load, bool $main = FALSE) { $this->load = $load; if ($main) { $this->main = $this; |