File modules/cms/action/AliasAction.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\Alias; 6 7 8 /** 9 * <editor-fold defaultstate="collapsed" desc="license"> 10 * 11 * OpenRat Content Management System 12 * Copyright (C) 2019 Jan Dankert 13 * 14 * This program is free software; you can redistribute it and/or 15 * modify it under the terms of the GNU General Public License 16 * as published by the Free Software Foundation; either version 2 17 * of the License, or (at your option) any later version. 18 * 19 * This program is distributed in the hope that it will be useful, 20 * but WITHOUT ANY WARRANTY; without even the implied warranty of 21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 * GNU General Public License for more details. 23 * 24 * You should have received a copy of the GNU General Public License 25 * along with this program; if not, write to the Free Software 26 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 27 * 28 * </editor-fold> 29 */ 30 31 32 33 34 /** 35 * Action-Klasse fuer Aliases 36 * @author Jan Dankert 37 */ 38 class AliasAction extends ObjectAction 39 { 40 /** 41 * @var Alias 42 */ 43 private $alias; 44 45 /** 46 * Konstruktor 47 */ 48 function __construct() 49 { 50 parent::__construct(); 51 52 } 53 54 55 public function init() 56 { 57 $this->alias = new Alias( $this->request->getId() ); 58 $this->alias->load(); 59 60 parent::init(); 61 } 62 63 }
Download modules/cms/action/AliasAction.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. Sun, 23 Feb 2020 04:01:30 +0100 Jan Dankert Refactoring with Namespaces for the cms modules, part 1: moving.