Adding basic anonymous subscription.
This commit is contained in:
parent
c4115cc82a
commit
8fdeca68b5
3 changed files with 124 additions and 5 deletions
35
lib/WebGUI/User/SpecialState.pm
Normal file
35
lib/WebGUI/User/SpecialState.pm
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
package WebGUI::User::SpecialState;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Carp;
|
||||
|
||||
use base 'WebGUI::User';
|
||||
|
||||
sub create {
|
||||
my $class = shift;
|
||||
my $session = shift;
|
||||
|
||||
my $self = $class->SUPER::create( $session, @_ );
|
||||
|
||||
return $self->new( $session, $self->getId );
|
||||
}
|
||||
|
||||
sub addSpecialState {
|
||||
my $self = shift;
|
||||
my $state = shift || croak 'state is required';
|
||||
my $id = shift;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
sub removeSpecialState {
|
||||
my $self = shift;
|
||||
my $state = shift || croak 'state is required';
|
||||
my $id = shift;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue