restore purge sub
This commit is contained in:
parent
68ff4fdf6c
commit
893b03fc53
1 changed files with 11 additions and 0 deletions
|
|
@ -166,6 +166,17 @@ sub incrementCounter {
|
|||
}
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub purge {
|
||||
my $self = shift;
|
||||
WebGUI::SQL->write("delete from Matrix_listing where assetId=".quote($self->getId));
|
||||
WebGUI::SQL->write("delete from Matrix_listingData where assetId=".quote($self->getId));
|
||||
WebGUI::SQL->write("delete from Matrix_field where assetId=".quote($self->getId));
|
||||
WebGUI::SQL->write("delete from Matrix_rating where assetId=".quote($self->getId));
|
||||
WebGUI::SQL->write("delete from Matrix_ratingSummary where assetId=".quote($self->getId));
|
||||
$self->SUPER::purge;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub setRatings {
|
||||
my $self = shift;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue