2FA/Remember Me Implementierung

Userprofile Implementierung

Datatables Padding Anpassungen

Usercontroller und User um Mobile erweitert
This commit is contained in:
Spitzer_Daniel
2023-08-17 09:42:18 +02:00
parent 1887ad222d
commit f95d0b0074
21 changed files with 1643 additions and 554 deletions

View File

@@ -0,0 +1,40 @@
<?php
class UserProfile extends mfBaseModel
{
private $editor;
private $creator;
public function getProperty($name)
{
if ($this->$name == null) {
if (!$this->id) {
return null;
}
if ($name == "creator") {
$this->creator = new User($this->create_by);
return $this->creator;
}
if ($name == "editor") {
$this->editor = new User($this->edit_by);
return $this->editor;
}
$classname = ucfirst($name);
$idfield = $name . "_id";
$this->$name = new $classname($this->$idfield);
if ($this->$name->id) {
return $this->$name;
} else {
return null;
}
}
return $this->$name;
}
}