view Lib/IMPL/Web/ViewResult.pm @ 244:a02b110da931

refactoring fixed binding to CGI query parameters with multiple values
author sergey
date Mon, 22 Oct 2012 04:09:27 +0400
parents f48a1a9f4fa2
children 32aceba4ee6d
line wrap: on
line source

package IMPL::Web::ViewResult;
use strict;

use IMPL::Const qw(:prop);

use IMPL::declare {
    base => [
        'IMPL::Object' => undef,
        'IMPL::Object::Autofill' => '@_'
    ],
    props => [
        model => PROP_RW,
        location => PROP_RW
    ]
};

1;

__END__

=pod

=head1 NAME

C<IMPL::Web::ViewResult> - описание представления результата.

=head1 SYNOPSIS

=begin code

sub HttpGet {
    my ($this, $action) = @_;
    
    return IMPL::Web::ViewResult->new(
        model => $model,
        location => $this->location
    );
}

=end code

=head1 DESCRIPTION

Сожержит в себе информацию для представления модели.

=head1 MEMBERS

=head2 C<[get,set]model>

Модель ресурса, как правило это результат выполнения C<Http> метода.

=head2 C<[get,set]location>

Текущий абсолютный адрес ресурса.   

=cut