add getRevisionDates method

This commit is contained in:
Doug Bell 2010-08-06 17:50:28 -05:00
parent 6d6e5768ef
commit a13fee07a0

View file

@ -245,6 +245,22 @@ sub getRevisionCount {
#-------------------------------------------------------------------
=head2 getRevisionDates ( [ status ] )
Return an arrayref of all the revision dates for this asset, sorted in
descending order (most recent first).
=cut
sub getRevisionDates {
my $self = shift;
return $self->session->db->buildArrayRef(
"select revisionDate from assetData where assetId=? order by revisionDate desc",
[$self->getId],
);
}
#-------------------------------------------------------------------
=head2 getRevisions ( [ status ] )
Returns an array reference of the revision objects of this asset, sorted by revision date in descending