File modules/cms/model/Text.class.php

Last commit: Thu Mar 4 03:39:25 2021 +0100	Jan Dankert	New: Separate edit action for images and texts.
1 <?php 2 namespace cms\model; 3 // OpenRat Content Management System 4 // Copyright (C) 2002-2012 Jan Dankert, cms@jandankert.de 5 // 6 // This program is free software; you can redistribute it and/or 7 // modify it under the terms of the GNU General Public License 8 // as published by the Free Software Foundation; either version 2 9 // of the License, or (at your option) any later version. 10 // 11 // This program is distributed in the hope that it will be useful, 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 // GNU General Public License for more details. 15 // 16 // You should have received a copy of the GNU General Public License 17 // along with this program; if not, write to the Free Software 18 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 20 21 /** 22 * Datei. 23 * 24 * @author Jan Dankert 25 * @package openrat.objects 26 */ 27 class Text extends File 28 { 29 /** 30 * Konstruktor 31 * 32 * @param string $objectid 33 */ 34 public function __construct( $objectid='' ) 35 { 36 37 parent::__construct( $objectid ); 38 39 $this->isText = true; 40 $this->isFile = false; 41 $this->typeid = BaseObject::TYPEID_TEXT; 42 } 43 44 45 public function mimeType() 46 { 47 return 'text/plain'; 48 } 49 }
Download modules/cms/model/Text.class.php
History Thu, 4 Mar 2021 03:39:25 +0100 Jan Dankert New: Separate edit action for images and texts. Sun, 23 Feb 2020 04:01:30 +0100 Jan Dankert Refactoring with Namespaces for the cms modules, part 1: moving.