From 7f15fb107344f5e876df6f053004415ea1759c70 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 25 Oct 2016 18:59:02 +0200 Subject: * saving and restoring user data from cookie --- app/frontend/dto/UserKeyDTO.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 app/frontend/dto/UserKeyDTO.php (limited to 'app/frontend/dto/UserKeyDTO.php') diff --git a/app/frontend/dto/UserKeyDTO.php b/app/frontend/dto/UserKeyDTO.php new file mode 100644 index 0000000..1dbca8e --- /dev/null +++ b/app/frontend/dto/UserKeyDTO.php @@ -0,0 +1,26 @@ +User) { + $this->User = $record->User->Login; + } + $this->Key = $record->AuthKey; + $this->IPAddress = $record->IPAddress; + } + + public static function __compare(UserKeyDTO $dto1, UserKeyDTO $dto2) { + return strcmp($dto1->Key, $dto2->Key); + } + +} + +?> -- cgit v1.2.3