#------------------------------------------------------------
# Copyright (C) 2006 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#------------------------------------------------------------
package RPS::Region::RegionList;

use strict;
use warnings;
use Data::Dumper;

use lib '/app/tools/rps/lib';
use RPS::Region::Region;

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


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

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

    $self->{Region} = [];

	my $collection = RPS::DB::Item::Region->GetAll();
	while ($collection->hasNext())
	{
		my $obj = $collection->next();
		push @{$self->{Region}}, RPS::Region::Region->new(_dbItem => $obj, loadSubs => 0);
	}

	return $self;
}


sub getList
{
	my ($self) = @_;

	return $self->{Region};
}


###
1;#
###

