Mercurial > pub > Impl
view Lib/IMPL/Web/ViewResult.pm @ 250:129e48bb5afb
DOM refactoring
ObjectToDOM methods are virtual
QueryToDOM uses inflators
Fixed transform for the complex values in the ObjectToDOM
QueryToDOM doesn't allow to use complex values (HASHes) as values for nodes (overpost problem)
author | sergey |
---|---|
date | Wed, 07 Nov 2012 04:17:53 +0400 |
parents | a02b110da931 |
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