Sergey Lepenkov
and 1 contributors

NAME

WWW::MLite::Transaction - MVC SKEL transaction

VERSION

Version 1.01

SYNOPSIS

    my $q = new CGI;
    my ($actObject,$actEvent) = split /[,]/, $q->param('action') || '';
    $actObject = 'default' unless $actObject && $mlite->ActionCheck($actObject);
    $actEvent = $actEvent && $actEvent =~ /go/ ? 'go' : '';
    
    my $status = $mlite->ActionTransaction($actObject,$actEvent);
    
    my $status = $mlite->ActionExecute($actObject,'cdeny');

DESCRIPTION

Working with MVC SKEL transactions. This module based on MPMinus::Transaction module.

See MVC SKEL transaction DESCRIPTION file or MPMinus::Manual

METHODS

ActionTransaction
    my $status = $mlite->ActionTransaction( $actObject, $actEvent );

Start MVC SKEL Transaction by $actObject and $actEvent

ActionExecute
    my $status = $mlite->ActionExecute( $actObject, $handler_name );

Execute $handler_name action by $actObject.

$handler_name must be: mproc, vform, cchck, caccess, cdeny

ActionCheck
    my $status = $mlite->ActionCheck( $actObject );

Check existing status of $actObject handler

getActionRecord
    my $struct = $mlite->getActionRecord( $actObject );

Returns meta record of $actObject

SEE ALSO

MPMinus::Transaction

AUTHOR

Serz Minus (Lepenkov Sergey) http://www.serzik.com <minus@mail333.com>

COPYRIGHT

Copyright (C) 1998-2014 D&D Corporation. All Rights Reserved

LICENSE

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

See LICENSE file