(file) Return to AddAction.class.php CVS log (file) (dir) Up to [Development] / advokit-installer-bak

File: [Development] / advokit-installer-bak / AddAction.class.php (download) / (as text)
Revision: 1.2, Thu Jul 8 12:58:55 2004 UTC (6 years, 2 months ago) by travislow
Branch: MAIN
CVS Tags: r1-1-1-alpha-00, r1-1-0-alpha-00, r0-9-5, r0-9-0, r-0-8-5, r-0-8-2, r-0-8-1, r-0-8-0, HEAD
Changes since 1.1: +22 -4 lines
adding license.

<?
# ======================================================================
# AdvoKit -- a campaign managment tool
# Copyright (C) 2004  OrchidSuites, Inc. (info@orchidsuites.net)
# 
# This program is free software; you can redistribute it and/or
# modify it under the terms of the AFFERO GENERAL PUBLIC LICENSE
# as published by Affero, Inc.; either version 1
# 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
# AFFERO GENERAL PUBLIC LICENSE for more details.
# 
# You should have received a copy of the AFFERO GENERAL PUBLIC LICENSE
# along with this program; if not, write to Affero, Inc. at
# 510 Third Street - Suite 225, San Francisco, CA 94107, USA
# or visit <http://www.affero.org>.
# ======================================================================

# ======================================================================
# Action class for adding things to the system (typically to a database).
# The major difference from BaseAction is that request parameters are
# put directly back into the template engine, in case of redisplay.
# ======================================================================
class AddAction extends BaseAction
{
    #.................................................. AddAction
    #
    # Constructor.  Pass in the context for the current
    # request.  Save off request parameters in case
    # originating display is redisplayed (e.g. the
    # browser "back" button).
    #
    function AddAction( &$context )
    {
        parent::BaseAction( $context );
        $this->okaytorepost = NULL;
        $context->ustate->setData( $this->person_id, 0, $context->ustate->getValue( $this->person_id, 0, '', '', 'lastdisplay' ), '', 'prevparms', $context->request->getParms() );
    }
}
?>

cvsadmin@voter2voter.org
CVS Snapshots (updated daily)