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

Last commit: Sat Mar 6 02:50:20 2021 +0100	Jan Dankert	New: Enable actions for guest users.
1 <?php 2 3 namespace cms\action; 4 5 use cms\model\Url; 6 use language\Messages; 7 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 f?r Verkn?pfungen 29 * @version $Id$ 30 * @author $Author$ 31 * @package openrat.actions 32 */ 33 class UrlAction extends ObjectAction 34 { 35 /** 36 * @var Url 37 */ 38 protected $url; 39 40 /** 41 * Konstruktor 42 */ 43 function __construct() 44 { 45 parent::__construct(); 46 47 } 48 49 50 public function init() 51 { 52 $url = new Url( $this->request->getId() ); 53 $url->load(); 54 55 $this->setBaseObject( $url ); 56 } 57 58 protected function setBaseObject( $url ) { 59 60 $this->url = $url; 61 62 parent::setBaseObject( $url ); 63 } 64 }
Download modules/cms/action/UrlAction.class.php
History 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. Tue, 10 Nov 2020 00:04:55 +0100 Jan Dankert urls must be edited in the modal dialog. 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. Thu, 27 Aug 2020 00:32:27 +0200 Jan Dankert Cleanup: Remove unused template components page,tree; remove unused action method 'structure'. Sun, 23 Feb 2020 04:01:30 +0100 Jan Dankert Refactoring with Namespaces for the cms modules, part 1: moving.