openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 7c73ac3bb0e5983b6935b7293663d57c12ff1437
parent 8de4b6ad3fcf13aaa7988b3dd57070a1e3cbe892
Author: dankert <devnull@localhost>
Date:   Wed, 11 Jan 2006 23:39:19 +0100

Neue provisorische Aktionsklasse f?r eine Zwischenablage

Diffstat:
actionClasses/ClipboardAction.class.php | 60++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+), 0 deletions(-)

diff --git a/actionClasses/ClipboardAction.class.php b/actionClasses/ClipboardAction.class.php @@ -0,0 +1,59 @@ +<?php +// --------------------------------------------------------------------------- +// $Id$ +// --------------------------------------------------------------------------- +// OpenRat Content Management System +// Copyright (C) 2002 Jan Dankert, jandankert@jandankert.de +// +// 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 2 +// 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. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +/** + * Action-Klasse fuer die Start-Action + * @author $Author$ + * @version $Revision$ + * @package openrat.actions + */ + +class ClipboardAction extends Action +{ + var $defaultSubAction = 'show'; + + + function show() + { + global $conf; + $o = Session::getClipboard(); + if ( is_object($o)) + { + $o->load(); + $this->setTemplateVar('object',$o); + } + + $this->forward( 'clipboard' ); + } + + + function set() + { + global $conf; + $o = new Object( $this->getRequestId() ); + Session::setClipboard( $o ); + $this->callSubAction( 'show' ); + + } +} + +?>+ \ No newline at end of file