Hyper::Application::Default - Default Application Class for Hyper


Back to Top


NAME

Hyper::Application::Default - Default Application Class for Hyper

Back to Top


VERSION

This document describes Hyper::Application::Default 0.01

Back to Top


SYNOPSIS

    use Hyper::Application::Default;
    Hyper::Application::Default->new();

Back to Top


DESCRIPTION

Default Application for Hyper Workflows with HTML header.

Back to Top


ATTRIBUTES

template :get

Back to Top


SUBROUTINES/METHODS

START

    use Hyper::Application::Default;
    Hyper::Application::Default->new();

Initialize the template attribute with a new Hyper::Template::HTC object. Use template from config or the template index.htc HTC Object is created with param loop_context_vars => 1.

_output_header :PROTECTED

    $self->_output_header();

Output CGI headers (cache-control, type).

work

  1. Output header.

  2. Output template with

        NAME       VALUE
        ------------------------------------------------
        service    service from Hyper Singleton
        usecase    usecase from Hyper Singleton
        header     1
  3. Restore viewstate and start the workflow if the workflow is existant.

  4. Output template with

        NAME       VALUE
        ------------------------------------------------
        service    service from Hyper Singleton
        usecase    usecase from Hyper Singleton
        header     0
        footer     1
        debug      html from Hyper::Singleton::Debug
        hidden     return from method _get_hidden_fields

_get_hidden_fields

    my $hidden_ref = $self->_get_hidden_fields();

Returns a hashref with

    NAME       VALUE
    ------------------------------------------------
    uuid       uuid from Hyper Singleton
    viewstate  return from method _get_viewstate

Back to Top


DIAGNOSTICS

Back to Top


CONFIGURATION AND ENVIRONMENT

Use the Hyper::Singleton::Context manpage for your configuration.

Sample for your Context.ini

    [Hyper::Application::Default]
    template=index.htc

Back to Top


DEPENDENCIES

Back to Top


INCOMPATIBILITIES

Back to Top


BUGS AND LIMITATIONS

Back to Top


RCS INFORMATIONS

Last changed by
 $Author: ac0v $
Id
 $Id: Default.pm 317 2008-02-16 01:52:33Z ac0v $
Revision
 $Revision: 317 $
Date
 $Date: 2008-02-16 02:52:33 +0100 (Sa, 16 Feb 2008) $
HeadURL
 $HeadURL: http://svn.hyper-framework.org/Hyper/Hyper/tags/0.05/lib/Hyper/Application/Default.pm $

Back to Top


AUTHOR

Andreas Specht <ACID@cpan.org>

Back to Top


LICENSE AND COPYRIGHT

Copyright (c) 2007, Andreas Specht <ACID@cpan.org>. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Back to Top

 Hyper::Application::Default - Default Application Class for Hyper