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