Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    OpenPlugin::Application 0.11

    Download button

    No screenshots available
    Downloads: 383  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Eric Andreychek | More programs
    Perl Artistic License / FREE
    October 31st, 2006, 09:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    OpenPlugin::Application description

    OpenPlugin::Application is a subclass of CGI::Application, meant to help you create reusable web applications.

    OpenPlugin::Application is a subclass of CGI::Application, meant to help you create reusable web applications.

    SYNOPSIS

    # Example from OpenThought's Demo.pm

    package Demo;
    use base "OpenPlugin::Application";
    sub setup {
    my $self = shift;
    $self->run_modes(
    'mode1' => 'init_demo',
    'mode2' => 'get_os_list',
    'mode3' => 'get_os_info',
    );
    $self->start_mode( 'mode1' );
    $self->mode_param('run_mode');
    }
    sub init_demo { ... }
    sub get_os_list { ... }
    sub get_os_info { ... }
    1;

    # Example from OpenThought's demo.pl

    #!/usr/bin/perl -wT
    use strict;
    my $r = shift;
    my $demo = Demo->new( PARAMS => {
    config => { src => "/path/to/OpenPlugin.conf" },
    request => { apache => $r },
    });

    $demo->run();

    OpenPlugin::Application is built on Jesse Erlbaum's popular CGI::Application module. OpenPlugin::Application is simply a subclass of CGI::Application. Jesse says the following about CGI::Application:

    "CGI::Application is intended to make it easier to create sophisticated, reusable web-based applications. This module implements a methodology which, if followed, will make your web software easier to design, easier to document, easier to write, and easier to evolve."

    How does it do this? Jesse goes on to say:

    "The guiding philosophy behind CGI::Application is that a web-based application can be organized into a specific set of "Run-Modes." Each Run-Mode is roughly analogous to a single screen (a form, some output, etc.). All the Run-Modes are managed by a single "Application Module" which is a Perl module. In your web server's document space there is an "Instance Script" which is called by the web server"

    The biggest difference between CGI::Application and OpenPlugin::Application is that query object they both use; one is designed to use CGI.pm, the other OpenPlugin. Generally speaking, everything in the still applies. Any differences will be noted in this document.
    It is not necessary to use OpenPlugin::Application in order to build web applications using OpenPlugin. This plugin is meant to be for your convenience -- to help you structure your web applications in a manner which makes sense, and is reusable.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    CGI::Application subclass | web applications | Perl module | OpenPlugin::Applicat | CGI::Application | subclass

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM