protected function log($action, $msg, Table $table, $tableHistory = null) { $adminAuth = new AdminAuthModel(); $admin = $adminAuth->getUser(); log::save($this->_dao, $admin, $action, $msg, $table, $tableHistory); }
public function relogin() { $admin = $this->getById($this->getId()); $aam = new AdminAuthModel(); $aam->login($admin['email'], $admin['password'], true); }