Andreas 'ac0v' Specht > Hyper > Hyper::Application::Default

Download:
Hyper-v0.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  1
View/Report Bugs
Module Version: v0.01   Source  

NAME ^

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

VERSION ^

This document describes Hyper::Application::Default 0.01

SYNOPSIS ^

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

DESCRIPTION ^

Default Application for Hyper Workflows with HTML header.

ATTRIBUTES ^

template :get

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

DIAGNOSTICS ^

CONFIGURATION AND ENVIRONMENT ^

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

Sample for your Context.ini

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

DEPENDENCIES ^

INCOMPATIBILITIES ^

BUGS AND LIMITATIONS ^

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 $

AUTHOR ^

Andreas Specht <ACID@cpan.org>

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.

syntax highlighting: