Updated keyword expansion to be disabled for all gif,png,jpg files and sxw (OpenOffic...
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_browsetree.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2003 Kasper Skårhøj (kasper@typo3.com)
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
18 *
19 *
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
27 /**
28 * generate a page-tree. OBS: remember $clause
29 *
30 * $Id$
31 *
32 * Revised for TYPO3 3.6 August/2003 by Kasper Skårhøj
33 *
34 * @author Kasper Skårhøj <kasper@typo3.com>
35 * @coauthor René Fritz <r.fritz@colorcube.de>
36 * Maintained by René Fritz
37 */
38 /**
39 * [CLASS/FUNCTION INDEX of SCRIPT]
40 *
41 *
42 *
43 * 70: class t3lib_browseTree extends t3lib_treeView
44 * 78: function init($clause='')
45 * 104: function getTitleAttrib(&$row)
46 *
47 * TOTAL FUNCTIONS: 2
48 * (This index is automatically created/updated by the extension "extdeveval")
49 *
50 */
51
52 require_once (PATH_t3lib.'class.t3lib_treeview.php');
53
54
55
56
57
58
59
60
61
62
63
64
65
66 /**
67 * Extension class for the t3lib_treeView class, specially made for browsing pages
68 *
69 * @author Kasper Skårhøj <kasper@typo3.com>
70 * @coauthor René Fritz <r.fritz@colorcube.de>
71 * @see class t3lib_treeView
72 * @package TYPO3
73 * @subpackage t3lib
74 */
75 class t3lib_browseTree extends t3lib_treeView {
76
77 /**
78 * Initialize
79 *
80 * @param string Additional clause for selecting pages.
81 * @return void
82 */
83 function init($clause='') {
84 parent::init(' AND NOT deleted AND '.$GLOBALS['BE_USER']->getPagePermsClause(1).' '.$clause.' ORDER BY sorting');
85
86
87 $this->BE_USER = $GLOBALS['BE_USER'];
88 $this->titleAttrib = t3lib_BEfunc::titleAttrib();
89 $this->backPath = $GLOBALS['BACK_PATH'];
90
91 $this->table='pages';
92 $this->treeName='browsePages';
93 $this->domIdPrefix = 'pages';
94 $this->iconName = '';
95 $this->title = $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'];
96 $this->MOUNTS = $GLOBALS['WEBMOUNTS'];
97
98 if (t3lib_extMgm::isLoaded('cms')) {
99 $this->fieldArray=array_merge($this->fieldArray,array('doktype','php_tree_stop','hidden','starttime','endtime','fe_group','module','extendToSubpages'));
100 }
101 }
102
103 /**
104 * Creates title attribute for pages.
105 *
106 * @param array The table row.
107 * @return string
108 */
109 function getTitleAttrib(&$row) {
110 return t3lib_BEfunc::titleAttribForPages($row,'1=1 '.$this->clause,0);
111 }
112 }
113
114
115 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_browsetree.php']) {
116 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_browsetree.php']);
117 }
118 ?>