openrat-cms

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

LinkAction.class.php (1446B)


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