File modules/cms/action/TextAction.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\Text; 7 use language\Messages; 8 9 // OpenRat Content Management System 10 // Copyright (C) 2002-2012 Jan Dankert, cms@jandankert.de 11 // 12 // This program is free software; you can redistribute it and/or 13 // modify it under the terms of the GNU General Public License 14 // as published by the Free Software Foundation; either version 2 15 // of the License, or (at your option) any later version. 16 // 17 // This program is distributed in the hope that it will be useful, 18 // but WITHOUT ANY WARRANTY; without even the implied warranty of 19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 // GNU General Public License for more details. 21 // 22 // You should have received a copy of the GNU General Public License 23 // along with this program; if not, write to the Free Software 24 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 25 26 27 /** 28 * Action-Klasse zum Bearbeiten einer Datei 29 * @author Jan Dankert 30 */ 31 class TextAction extends FileAction 32 { 33 /** 34 * @var Text 35 */ 36 protected $text; 37 38 /** 39 * Konstruktor 40 */ 41 function __construct() 42 { 43 parent::__construct(); 44 } 45 46 47 public function init() 48 { 49 50 $text = new Text($this->request->getId()); 51 $text->load(); 52 53 $this->setBaseObject( $text ); 54 } 55 56 57 58 protected function setBaseObject($script ) { 59 60 $this->text = $script; 61 62 parent::setBaseObject( $script ); 63 } 64 }
Download modules/cms/action/TextAction.class.php
History Sun, 29 Jan 2023 00:20:21 +0100 Jan Dankert New node type "Script". Sat, 6 Mar 2021 02:50:20 +0100 Jan Dankert New: Enable actions for guest users. Fri, 26 Feb 2021 01:06:01 +0100 Jan Dankert Refactoring accessing the request parameter values. Wed, 18 Nov 2020 00:18:10 +0100 Jan Dankert Refactoring Part 2: Removing all unnecessary methods in the action base classes. Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class. Wed, 11 Nov 2020 23:24:28 +0100 Jan Dankert Fixing editing value of files,images,texts. Fri, 2 Oct 2020 23:11:48 +0200 Jan Dankert Cleanup: No '.inputholder' any more, notices with links to objects. Tue, 29 Sep 2020 22:17:11 +0200 Jan Dankert Refactoring: Do not use global constants. Sun, 23 Feb 2020 04:01:30 +0100 Jan Dankert Refactoring with Namespaces for the cms modules, part 1: moving.