| 1 | # This code is part of Perl distribution User-Identity version 4.00. | ||
| 2 | # The POD got stripped from this file by OODoc version 3.05. | ||
| 3 | # For contributors see file ChangeLog. | ||
| 4 | |||
| 5 | # This software is copyright (c) 2003-2025 by Mark Overmeer. | ||
| 6 | |||
| 7 | # This is free software; you can redistribute it and/or modify it under | ||
| 8 | # the same terms as the Perl 5 programming language system itself. | ||
| 9 | # SPDX-License-Identifier: Artistic-1.0-Perl OR GPL-1.0-or-later | ||
| 10 | |||
| 11 | |||
| 12 | package User::Identity::Archive;{ | ||
| 13 | our $VERSION = '4.00'; | ||
| 14 | } | ||
| 15 | |||
| 16 | use parent 'User::Identity::Item'; | ||
| 17 | |||
| 18 | use strict; | ||
| 19 | use warnings; | ||
| 20 | |||
| 21 | use Log::Report 'user-identity'; | ||
| 22 | |||
| 23 | #-------------------- | ||
| 24 | |||
| 25 | sub type { "archive" } | ||
| 26 | |||
| 27 | |||
| 28 | sub init($) | ||
| 29 | { my ($self, $args) = @_; | ||
| 30 | $self->SUPER::init($args); | ||
| 31 | |||
| 32 | if(my $from = delete $args->{from}) | ||
| 33 | { $self->from($from) or return; | ||
| 34 | } | ||
| 35 | |||
| 36 | $self; | ||
| 37 | } | ||
| 38 | |||
| 39 | #-------------------- | ||
| 40 | |||
| 41 | 1; |