File modules/cms/ui/action/TreeAction.class.php

Last commit: Sun Mar 14 22:29:56 2021 +0100	Jan Dankert	Refactoring: Clearer access check.
1 <?php 2 3 namespace cms\ui\action; 4 5 use cms\action\Action; 6 use cms\action\BaseAction; 7 use cms\action\RequestParams; 8 use cms\model\BaseObject; 9 use cms\model\Element; 10 use cms\model\Folder; 11 use cms\model\Group; 12 use cms\model\ModelFactory; 13 use cms\model\Page; 14 use cms\model\Project; 15 use cms\model\Template; 16 use cms\model\User; 17 use cms\model\Value; 18 use util\json\JSON; 19 use util\Tree; 20 use cms\model\Language; 21 use cms\model\Model; 22 23 use util\Session; 24 25 // OpenRat Content Management System 26 // Copyright (C) 2002 Jan Dankert, jandankert@jandankert.de 27 // 28 // This program is free software; you can redistribute it and/or 29 // modify it under the terms of the GNU General Public License 30 // as published by the Free Software Foundation; either version 2 31 // of the License, or (at your option) any later version. 32 // 33 // This program is distributed in the hope that it will be useful, 34 // but WITHOUT ANY WARRANTY; without even the implied warranty of 35 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 36 // GNU General Public License for more details. 37 // 38 // You should have received a copy of the GNU General Public License 39 // along with this program; if not, write to the Free Software 40 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 41 42 /** 43 * Action-Klasse zum Laden/Anzeigen des Navigations-Baumes 44 * @author $Author$ 45 * @version $Revision$ 46 * @package openrat.actions 47 */ 48 49 class TreeAction extends BaseAction 50 { 51 public function __construct() 52 { 53 parent::__construct(); 54 } 55 56 57 public function checkAccess() { 58 return true; // Allowed for all 59 } 60 61 }
Download modules/cms/ui/action/TreeAction.class.php
History Sun, 14 Mar 2021 22:29:56 +0100 Jan Dankert Refactoring: Clearer access check. Wed, 18 Nov 2020 20:23:57 +0100 Jan Dankert Cleaning up the UI actions. Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class. Sun, 4 Oct 2020 23:53:25 +0200 Jan Dankert New: The tree is now hidable with a dedicated button. No more hover effect in the navigation. Tue, 29 Sep 2020 22:17:11 +0200 Jan Dankert Refactoring: Do not use global constants. Sun, 27 Sep 2020 04:53:00 +0200 Jan Dankert Refactoring: Loading the initial tree with javascript. So we could remove the 'tree'-method from the TreeAction. Sun, 27 Sep 2020 04:09:05 +0200 Jan Dankert Refactoring: The tree functions should use normal templates as the other actions. Beware of the JS hell. Sun, 27 Sep 2020 00:48:43 +0200 Jan Dankert Fix: Treeaction is an UI action, so ist is not available via the API. Now there is an ugly workaround for that, we have to create a template for this calls. Sat, 26 Sep 2020 21:42:51 +0200 Jan Dankert Refactoring: The UI Actions are now in their own namespace. No need for a confusing require file.