File modules/cms/action/LinkAction.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\BaseObject; 6 use cms\model\Link; 7 use util\Html; 8 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 f?r Verkn?pfungen 30 * @version $Id$ 31 * @author $Author$ 32 * @package openrat.actions 33 */ 34 class LinkAction extends ObjectAction 35 { 36 /** 37 * @var Link 38 */ 39 protected $link; 40 41 /** 42 * Konstruktor 43 */ 44 function __construct() 45 { 46 parent::__construct(); 47 48 } 49 50 51 public function init() 52 { 53 $link = new Link( $this->request->getId() ); 54 $link->load(); 55 56 $this->setBaseObject( $link ); 57 } 58 59 60 protected function setBaseObject( $link ) { 61 62 $this->link = $link; 63 64 parent::setBaseObject( $link ); 65 } 66 }
Download modules/cms/action/LinkAction.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. 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.