Created
August 19, 2009 23:21
-
-
Save anonymous/170698 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------- | |
=head2 getNextThread ( ) | |
Returns a thread object for the next (newer) thread in the same forum. | |
=cut | |
sub getNextThread { | |
my $self = shift; | |
unless (exists $self->{_next}) { | |
my $parent = $self->getParent; | |
my $sortBy = $parent->getSortBy; | |
my $sortOrder = $parent->getSortOrder; | |
$self->{_next} = $self->getAdjacentThread($sortBy, $sortOrder); | |
}; | |
return $self->{_next}; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment