This commit is contained in:
origami11@yandex.ru 2022-11-22 12:46:15 +03:00
parent 7d35a8f3f0
commit a09fc396d8
9 changed files with 30 additions and 32 deletions

View file

@ -30,6 +30,11 @@ class User implements UserInterface
return $this->name;
}
function isLogged() {
return \ctiso\Filter\Authorization::isLogged();
}
public function getUserByQuery(Statement $stmt)
{
$result = $stmt->executeQuery();

View file

@ -1,11 +1,12 @@
<?php
namespace ctiso\Role;
use ctiso\Database\Statement;
interface UserInterface {
function getUserByQuery(Statement $stmt);
function getUserByLogin($login);
function getUserById($id);
function getName();
function setSID();
function setSID($random, $result);
}