openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

AliasAction.class.php (1332B)


      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 }