diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-08-15 17:23:41 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-08-15 17:23:41 -0700 |
commit | 9eeded33f68872515954a2fc177fcb47a9273ae9 (patch) | |
tree | f3ef9507e087ca6bf3ce624232da240a8689b051 /app/Core | |
parent | c539bdc8ab746c5afd48cf87de057dc38d50adac (diff) |
Add email notifications
Diffstat (limited to 'app/Core')
-rw-r--r-- | app/Core/Tool.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/Core/Tool.php b/app/Core/Tool.php index ade99cad..1a2e9904 100644 --- a/app/Core/Tool.php +++ b/app/Core/Tool.php @@ -31,4 +31,11 @@ class Tool fclose($fp); } } + + public static function loadModel(Registry $registry, $name) + { + $class = '\Model\\'.ucfirst($name); + $registry->$name = new $class($registry); + return $registry->shared($name); + } } |