File modules/cms/action/ScriptAction.class.php

Last commit: Sun Jan 29 00:20:21 2023 +0100	Jan Dankert	New node type "Script".
1 <?php 2 3 4 namespace cms\action; 5 6 use cms\model\Script; 7 use cms\model\Text; 8 use language\Messages; 9 10 // OpenRat Content Management System 11 // Copyright (C) 2002-2012 Jan Dankert, cms@jandankert.de 12 // 13 // This program is free software; you can redistribute it and/or 14 // modify it under the terms of the GNU General Public License 15 // as published by the Free Software Foundation; either version 2 16 // of the License, or (at your option) any later version. 17 // 18 // This program is distributed in the hope that it will be useful, 19 // but WITHOUT ANY WARRANTY; without even the implied warranty of 20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 // GNU General Public License for more details. 22 // 23 // You should have received a copy of the GNU General Public License 24 // along with this program; if not, write to the Free Software 25 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 26 27 28 /** 29 * Action-Klasse zum Bearbeiten einer Datei 30 * @author Jan Dankert 31 */ 32 class ScriptAction extends FileAction 33 { 34 /** 35 * @var Text 36 */ 37 protected $script; 38 39 /** 40 * Konstruktor 41 */ 42 function __construct() 43 { 44 parent::__construct(); 45 } 46 47 48 public function init() 49 { 50 51 $script = new Script($this->request->getId()); 52 $script->load(); 53 54 $this->setBaseObject( $script ); 55 } 56 57 58 59 protected function setBaseObject($script ) { 60 61 $this->script = $script; 62 63 parent::setBaseObject( $script ); 64 } 65 }
Download modules/cms/action/ScriptAction.class.php
History Sun, 29 Jan 2023 00:20:21 +0100 Jan Dankert New node type "Script".