openrat-cms

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

UserAction.class.php (1774B)


      1 <?php
      2 
      3 namespace cms\action;
      4 
      5 use cms\base\Configuration;
      6 use cms\base\Startup;
      7 use cms\model\Permission;
      8 use cms\model\BaseObject;
      9 use cms\model\Group;
     10 use cms\model\Language;
     11 use cms\model\Project;
     12 use cms\model\User;
     13 use language\Messages;
     14 use security\Base2n;
     15 use security\Password;
     16 use util\exception\ValidationException;
     17 use util\Mail;
     18 use util\Session;
     19 
     20 
     21 // OpenRat Content Management System
     22 // Copyright (C) 2002-2012 Jan Dankert, cms@jandankert.de
     23 //
     24 // This program is free software; you can redistribute it and/or
     25 // modify it under the terms of the GNU General Public License
     26 // as published by the Free Software Foundation; either version 2
     27 // of the License, or (at your option) any later version.
     28 //
     29 // This program is distributed in the hope that it will be useful,
     30 // but WITHOUT ANY WARRANTY; without even the implied warranty of
     31 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     32 // GNU General Public License for more details.
     33 //
     34 // You should have received a copy of the GNU General Public License
     35 // along with this program; if not, write to the Free Software
     36 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
     37 
     38 
     39 /**
     40  * Action-Klasse zum Bearbeiten eines Benutzers
     41  * @author $Author$
     42  * @version $Revision$
     43  * @package openrat.actions
     44  */
     45 class UserAction extends BaseAction
     46 {
     47 	public $security = Action::SECURITY_ADMIN;
     48 
     49     /**
     50      * @var User
     51      */
     52 	protected $user;
     53 
     54 
     55     /**
     56      * UserAction constructor.
     57      * @throws \util\exception\ObjectNotFoundException
     58      */
     59     function __construct() {
     60         parent::__construct();
     61     }
     62 
     63 
     64     public function init() {
     65 		$this->user = new User( $this->request->getId() );
     66 		$this->user->load();
     67 		$this->setTemplateVar('userid',$this->user->userid);
     68 	}
     69 }