Add POD for some methods in the Thread.
This commit is contained in:
parent
209597fa6b
commit
29be95b180
1 changed files with 26 additions and 4 deletions
|
|
@ -23,14 +23,28 @@ use WebGUI::Utility;
|
||||||
our @ISA = qw(WebGUI::Asset::Post);
|
our @ISA = qw(WebGUI::Asset::Post);
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
|
=head2 addRevision
|
||||||
|
|
||||||
|
Extend the base method to handle creating a subscription group for this Thread.
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
sub addRevision {
|
sub addRevision {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $newSelf = $self->SUPER::addRevision(@_);
|
my $newSelf = $self->SUPER::addRevision(@_);
|
||||||
$newSelf->createSubscriptionGroup;
|
$newSelf->createSubscriptionGroup;
|
||||||
return $newSelf;
|
return $newSelf;
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
|
=head2 archive
|
||||||
|
|
||||||
|
Archives all posts under this thread.
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
sub archive {
|
sub archive {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
foreach my $post (@{$self->getPosts}) {
|
foreach my $post (@{$self->getPosts}) {
|
||||||
|
|
@ -39,6 +53,14 @@ sub archive {
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
|
=head2 canAdd ($session)
|
||||||
|
|
||||||
|
A class method. Returns true if the current user in in the group canStartThreadGroupId
|
||||||
|
in the default asset, which better be a Collaboration System.
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
sub canAdd {
|
sub canAdd {
|
||||||
my $class = shift;
|
my $class = shift;
|
||||||
my $session = shift;
|
my $session = shift;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue