The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Hyper::Control - base class for all control classes

VERSION

This document describes Hyper::Control 0.02

SYNOPSIS

    package Hyper::Control::Sample;

    use Class::Std::Storable;
    use base qw(Hyper::Control);

    1;

DESCRIPTION

Hyper::Control inherits from Hyper::Container, adds the capability for getting the state of controls, including embedded controls and adds some methods needed for running our generated code.

ATTRIBUTES

dispatch :default<()> :name

SUBROUTINES/METHODS

set_owner

    $control->set_owner( $self );

Set owner for a control (eg. a container is the owner of a base control).

set_value_recursive

    $self->set_value_recursive(
        [qw(this initiator id)],                             # parts
        => $self->get_value_recursive([qw(permission type)]) # value
    );

Set a value by try and error. Don't call this method in YOUR programms. It's only used in generated code.

get_value_recursive

    $self->get_value_recursive([qw(this initiator id)]);

Get a value by try and error. Don't call this method in YOUR programms. It's only used in generated code.

STORABLE_thaw_post

Calls the DISPATCH method on the class stored in the dispatch attribute if the dispatch attribute is true.

DIAGNOSTICS

CONFIGURATION AND ENVIRONMENT

DEPENDENCIES

  • version

  • Class::Std::Storable

  • Hyper::Container

  • Hyper::Error

  • Hyper::Functions

  • Scalar::Util

INCOMPATIBILITIES

BUGS AND LIMITATIONS

RCS INFORMATIONS

Last changed by

$Author: ac0v $

Id

$Id: Control.pm 528 2009-01-11 05:43:02Z ac0v $

Revision

$Revision: 528 $

Date

$Date: 2009-01-11 06:43:02 +0100 (So, 11 Jan 2009) $

HeadURL

$HeadURL: http://svn.hyper-framework.org/Hyper/Hyper/tags/0.05/lib/Hyper/Control.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.