openrat-cms

OpenRat Content Management System
git clone http://git.code.weiherhei.de/openrat-cms.git
Log | Files | Refs | README

LanguageAction.class.php (1452B)


      1 <?php
      2 
      3 namespace cms\action;
      4 
      5 use cms\base\Configuration;
      6 use cms\model\Language;
      7 
      8 // OpenRat Content Management System
      9 // Copyright (C) 2002-2012 Jan Dankert, cms@jandankert.de
     10 //
     11 // This program is free software; you can redistribute it and/or
     12 // modify it under the terms of the GNU General Public License
     13 // as published by the Free Software Foundation; either version 2
     14 // of the License, or (at your option) any later version.
     15 //
     16 // This program is distributed in the hope that it will be useful,
     17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
     18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     19 // GNU General Public License for more details.
     20 //
     21 // You should have received a copy of the GNU General Public License
     22 // along with this program; if not, write to the Free Software
     23 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
     24 
     25 
     26 /**
     27  * Action-Klasse f?r die Bearbeitung einer Sprache
     28  * @version $Id$
     29  * @author  $Author$
     30  * @package openrat.actions
     31  */
     32 class LanguageAction extends BaseAction
     33 {
     34 	public $security = Action::SECURITY_USER;
     35 	
     36 	/**
     37 	 * Zu bearbeitende Sprache, wird im Kontruktor instanziiert
     38 	 * @type Language
     39 	 */
     40 	protected $language;
     41 
     42 
     43 	/**
     44 	 * Konstruktor
     45 	 */
     46 	public function __construct()
     47 	{
     48         parent::__construct();
     49 
     50     }
     51 
     52 
     53     public function init()
     54     {
     55 		$this->language = new Language( $this->request->getId() );
     56 		$this->language->load();
     57 	}
     58 
     59 
     60 
     61 }