#------------------------------------------------------------
# Copyright (C) 2015 RoyaltyShare, Inc.   All Rights Reserved
#------------------------------------------------------------
package RPS::Report::Dynamic::Sales::CatalogFieldHash;

use strict;
use warnings;

use lib '/app/tools/common/lib';
use lib '/app/tools/rps/lib';

use RPS::Report::Dynamic::Sales::CatalogField;

use base 'Common::FormHash';

sub _tagName { 'CatalogField' }

sub _keyMethodName { 'ReportParamCatalogFieldKey' }

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

    if (!$args{reportID})
    {
        return undef;
    }

    my $collection ;# = get the catalog field parameters from report param table
    return $collection;
}

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

    return RPS::Report::Dynamic::Sales::CatalogField->new();
}

sub _getObjectFromDBItem
{
    die "not overloaded";

    #pull report parameter by dbitem
}

1;
