#------------------------------------------------------------
# Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#------------------------------------------------------------
package Admin::Mcps::RetentionRateList;

use strict;
use warnings;
use Carp;

use lib '/app/tools/common/lib';
use Common::Assert;

use lib '/app/tools/admin/lib';
use Admin::Mcps::RetentionRate;

use Common::FormObject;
use base 'Common::FormObject';

sub _init {
    my ( $self, %args ) = @_;

    $self->SUPER::_init(%args);

    $self->{RetentionRate} = [];
    my $rates = Common::DB::Item::McpsRetentionRate->GetAll();
    while ( $rates->hasNext() ) {
        my $data = $rates->next();
        push @{ $self->{RetentionRate} }, Admin::Mcps::RetentionRate->new( _dbItem => $data );
    }

    return $self;
}

sub _listProperties {
    return { RetentionRate => 1 };
}

###
1;    #
###
