# Copyright (c) 2005 bivio Software, Inc. All Rights Reserved. # # Visit http://www.bivio.biz for more info. # # This library is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2.1 of the # License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; If not, you may get a copy from: # http://www.opensource.org/licenses/lgpl-license.html # # $Id: T1List.pm,v 1.2 2008/08/13 18:05:06 nagler Exp $ package Bivio::Test::t::ListModel::T1List; use strict; $Bivio::Test::t::ListModel::T1List::VERSION = sprintf('%d.%02d', q$Revision: 1.2 $ =~ /\d+/g); $_ = $Bivio::Test::t::ListModel::T1List::VERSION; =head1 NAME Bivio::Test::t::ListModel::T1List - test =head1 RELEASE SCOPE bOP =head1 SYNOPSIS use Bivio::Test::t::ListModel::T1List; =cut =head1 EXTENDS L =cut use Bivio::Biz::ListModel; @Bivio::Test::t::ListModel::T1List::ISA = ('Bivio::Biz::ListModel'); =head1 DESCRIPTION C =cut #=IMPORTS #=VARIABLES =head1 METHODS =cut =for html =head2 internal_initialize() : hash_ref Returns config. =cut sub internal_initialize { return { version => 1, shift->local_field(other => [ qw(f1 f2), ], 'Integer', 'NONE'), }; } =for html =head2 internal_load_rows() : array_ref Returns number of rows as specified by count =cut sub internal_load_rows { my($self) = @_; return [ map(({f1 => $_, f2 => $_}), 1 .. $self->get_query->get('count')), ]; } #=PRIVATE SUBROUTINES =head1 COPYRIGHT Copyright (c) 2005 bivio Software, Inc. All Rights Reserved. Visit http://www.bivio.biz for more info. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; If not, you may get a copy from: http://www.opensource.org/licenses/lgpl-license.html =head1 VERSION $Id: T1List.pm,v 1.2 2008/08/13 18:05:06 nagler Exp $ =cut 1;