view Lib/IMPL/Web/CGIApplication.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 546957c50a36
line wrap: on
line source

package IMPL::Web::CGIApplication;
use strict;

use IMPL::Const qw(:prop);
use IMPL::declare {
    require => {
        CGIWrapper => 'IMPL::Web::CGIWrapper'        
    },
    base => [
        'IMPL::Web::Application' => '@_'
    ],
    props => [
        _queryFetched => PROP_RW
    ]
};

sub CTOR {
    my ($this) = @_;
    
    $this->output(\*STDOUT) unless $this->output;
}

sub FetchRequest {
    my ($this) = @_;
    
    return if $this->_queryFetched;
    
    my $query = CGIWrapper->new();
    
    $query->charset($this->requestCharset) if $this->requestCharset;
    
    $this->_queryFetched(1);
    
    return $query;
}

1;