Project

General

Profile

1
<?php
2

    
3
/**
4
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
5
 *
6
 * This program is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
 */
19
/**
20
 * PageTree generator
21
 *
22
 * @category     WbACP
23
 * @package      WbACP_Pages
24
 * @author       Werner v.d.Decken <wkl@isteam.de>
25
 * @copyright    Werner v.d.Decken <wkl@isteam.de>
26
 * @license      http://www.gnu.org/licenses/gpl.html   GPL License
27
 * @version      1.0.0
28
 * @revision     $Revision: 1847 $
29
 * @link         $HeadURL: svn://isteam.dynxs.de/wb-archiv/branches/2.8.x/wb/admin/pages/PageTree.php $
30
 * @lastmodified $Date: 2013-01-05 15:58:02 +0100 (Sat, 05 Jan 2013) $
31
 * @since        file added on 2012-12-21
32
 */
33
	
34
class a_pages_PageTree
35
{
36
/** @var array language definitions */
37
	private $_TEXT     = null;
38
/** @var array language definitions */
39
	private $_MESSAGE  = null;
40
/** @var array language definitions */
41
	private $_HEADING  = null;
42
/** @var object instance of the application object */
43
	private $_oApp     = null;
44
/** @var object instance of the database object */
45
	private $_oDb      = null;
46
/** @var array holds several values from the application global scope */	
47
	private $_aReg     = array();
48
/** @var string full HTML formattet list of pages */
49
	private $_sOutput         = '';
50
/** @var integer number of all reachable pages */	
51
	private $_iPagesTotal     = 0;
52
/** @var integer number of all writeable pages */	
53
	private $_iPagesWriteable = 0;
54
/** @var integer index for toggle background color of the list */	
55
	private $_iLineColor      = 0;
56
/** @var array entries to build a select list for parents */	
57
	private $_aParentList     = array();
58
/** @var integer count all executed database requests passing all iterations. */
59
	private $_queries = 0;
60
/**
61
 * constructor used to import some application constants and objects
62
 */	
63
	public function __construct() 
64
	{
65
		// import global vars and objects
66
		$this->_wbAdaptor();
67
	}
68
/**
69
 * parse the page tree and return
70
 * @param int use page-ID as root of the generated page tree. (default: 0)
71
 * @return type
72
 */	
73
	public function parseTree($iTreeRoot = 0) {
74
		return $this->_createTree($iTreeRoot);
75
	}
76
/**
77
 *  parse the page tree and print it out
78
 * @param int use page-ID as root of the generated page tree. (default: 0)
79
 */	
80
	public function displayTree($iTreeRoot = 0) {
81
		echo $this->parseTree($iTreeRoot);
82
	}
83
/**
84
 * total number of found pages which are visible for actual user
85
 * @return integer
86
 */	
87
	public function getTotalPages() {
88
		return $this->_iPagesTotal;
89
	}
90
/**
91
 * number of found pages which are writable for actual user
92
 * @return integer
93
 */	
94
	public function getWriteablePages() {
95
		return $this->_iPagesWriteable;
96
	}
97
/**
98
 * a list with all possible parent pages
99
 * @return array
100
 */	
101
	public function getParentList() {
102
		if(!$this->_sOutput) {
103
			$this->parseTree();
104
		}
105
		return $this->_aParentList;
106
	}
107
/**
108
 * used to import some WB-constants and objects
109
 */	
110
	private function _wbAdaptor()
111
	{
112
		$this->_TEXT        = $GLOBALS['TEXT'];
113
		$this->_MESSAGE     = $GLOBALS['MESSAGE'];
114
		$this->_HEADING     = $GLOBALS['HEADING'];
115
		$this->_oApp        = $GLOBALS['admin'];
116
		$this->_oDb         = WbDatabase::getInstance();
117
		$this->_aReg['PAGE_TRASH']       = PAGE_TRASH;
118
		$this->_aReg['PAGE_LEVEL_LIMIT'] = PAGE_LEVEL_LIMIT;
119
		$this->_aReg['MANAGE_SECTIONS']  = MANAGE_SECTIONS;
120
		$this->_aReg['DOCUMENT_ROOT']    = $_SERVER['DOCUMENT_ROOT'];
121
		$this->_aReg['WB_URL']           = WB_URL;
122
		$this->_aReg['WB_REL']           = WB_REL;
123
		$this->_aReg['ACP_REL']          = ADMIN_REL;
124
		$this->_aReg['THEME_REL']        = THEME_REL;
125
		$this->_aReg['TABLE_PREFIX']     = TABLE_PREFIX;
126
	}
127
/**
128
 * create a page tree as a well formatted, unordered list
129
 * @param int use page-ID as root of the generated page tree. (default: 0)
130
 * @return string the whoole list
131
 */
132
	private function _createTree($iTreeRoot = 0)
133
	{
134
		// compose the complete list
135
		$sOutput = ''
136
		// build the head
137
		      . $this->_Tabs(0 , true).'<div class="jsadmin pages_list">'.PHP_EOL
138
		      . $this->_Tabs(1).'<table>'.PHP_EOL
139
		      . $this->_Tabs(1).'<tbody>'.PHP_EOL
140
		      . $this->_Tabs(1).'<tr class="pages_list_header">'.PHP_EOL
141
		      . $this->_Tabs(1).'<th class="header_list_menu_title">'.$this->_TEXT['VISIBILITY'].
142
		                        ' / '.$this->_TEXT['MENU_TITLE'].':</th>'.PHP_EOL
143
		      . $this->_Tabs(0).'<th class="header_list_page_title">'.$this->_TEXT['PAGE_TITLE'].
144
		                        '</th>'.PHP_EOL
145
		      . $this->_Tabs(0).'<th class="header_list_page_id">PID</th>'.PHP_EOL
146
		      . $this->_Tabs(0).'<th class="header_list_actions">'.$this->_TEXT['ACTIONS'].
147
		                        ':</th>'.PHP_EOL
148
		      . $this->_Tabs(0).'<th class="list_page_id">&nbsp;</th>'.PHP_EOL
149
		      . $this->_Tabs(-1).'</tr>'.PHP_EOL
150
		      . $this->_Tabs(-1).'</tbody>'.PHP_EOL
151
		      . $this->_Tabs(-1).'</table>'.PHP_EOL
152
		// generate the page lines
153
		      . $this->_IterateTree($iTreeRoot)
154
		// build the footer
155
		      . $this->_Tabs(-1).'</div>'.PHP_EOL;
156
		;
157
		$this->_sOutput = $sOutput;
158
		return $sOutput;
159
	}
160
/**
161
 * Create a string of multiple TABs to prettify the HTML-output
162
 * ingrease the number of TABs with a positive and degrease with an negative Value.
163
 * '0' means: do not change the value. Or set an absolute number using $bRelative=false
164
 * @staticvar int $iTabLevel
165
 * @param integer $iTabsDiv number of TABs to add/sub
166
 * @param bool $bRelative false if should be set to absolute value
167
 * @return string
168
 */
169
	private function _Tabs($iTabsDiv = 0, $bRelative = true)
170
	{
171
		static $iTabLevel = 0;
172
		$iTabLevel = ($bRelative ? $iTabLevel + $iTabsDiv : $iTabsDiv);
173
		$iTabLevel += ($iTabLevel < 0 ? 0 - $iTabLevel : $iTabsDiv);
174
		return str_repeat("\t", $iTabLevel);
175
	}
176
/**
177
 * compose the needed SQL statement
178
 * @param integer $iParentKey
179
 * @return string SQL statement
180
 */			
181
	private function _makeSql($iParentKey = 0)
182
	{
183
		if($this->_aReg['PAGE_TRASH'] != 'inline') {
184
			$sUseTrash = ' AND `visibility`!=\'deleted\'';
185
		}else { $sUseTrash = ''; }
186
		$sql = 'SELECT ( SELECT COUNT(*) '
187
		     .          'FROM `'.$this->_aReg['TABLE_PREFIX'].'pages` `x` '
188
		     .          'WHERE x.`parent`=p.`page_id`'
189
		     .        ') `children`, '
190
		     .        's.`module`, MAX(s.`publ_start` + s.`publ_end`) published, p.`link`, '
191
		     .        '(SELECT MAX(`position`) FROM `'.$this->_aReg['TABLE_PREFIX'].'pages` '
192
		     .        'WHERE `parent`='.$iParentKey.') max_position, '
193
		     .        '0 min_position, '
194
		     .        'p.`position`, '
195
		     .        'p.`page_id`, p.`parent`, p.`level`, p.`language`, p.`admin_groups`, '
196
		     .        'p.`admin_users`, p.`viewing_groups`, p.`viewing_users`, p.`visibility`, '
197
		     .        'p.`menu_title`, p.`page_title`, p.`page_trail` '
198
		     . 'FROM `'.$this->_aReg['TABLE_PREFIX'].'pages` p '
199
		     .    'INNER JOIN `'.$this->_aReg['TABLE_PREFIX'].'sections` s '
200
		     .    'ON p.`page_id`=s.`page_id` '
201
		     . 'WHERE `parent`='.$iParentKey.$sUseTrash.' '
202
		     . 'GROUP BY p.`page_id` '
203
		     . 'ORDER BY p.`position` ASC';
204
		return $sql;
205
	}
206
/**
207
 * iterate through all nodes which having subnodes 
208
 * @param integer start iteration from this parent page ( 0 = root)
209
 * @return string all of the item lines 
210
 */	
211
	private function _IterateTree($iParent = 0)
212
	{
213
		$sOutput = '';
214
		// Get page list from database
215
		if(($oPages = $this->_oDb->query($this->_makeSql($iParent)))) 
216
		{
217
			$this->_queries++;
218
			// output block-header
219
			$sOutput .= $this->_Tabs(0).'<ul id="p'.$iParent.'" class="page_list"';
220
			if(!$iParent) {
221
				$sOutput .= ' style="display: block;"';
222
			}else {
223
			// show block depending from Cookies
224
				if (isset ($_COOKIE['p'.$iParent]) && $_COOKIE['p'.$iParent] == '1') {
225
					$sOutput .= ' style="display: block;"';
226
				}
227
			}
228
			$sOutput .= '>'.PHP_EOL;
229
			$iMinPosition = 1;
230
			while($aPage = $oPages->fetchRow(MYSQL_ASSOC))
231
			{ // iterate through the current branch
232
				if($this->_aReg['PAGE_LEVEL_LIMIT'] && ($aPage['level'] > $this->_aReg['PAGE_LEVEL_LIMIT'])) {
233
					return '';
234
				}
235
				$aPage['min_position'] = ($aPage['position'] < $iMinPosition ? $aPage['position'] : $iMinPosition);
236
				$this->_iLineColor = $this->_iPagesTotal++ % 2;
237
				$aPage['iswriteable'] = false;
238
				if( $this->_oApp->ami_group_member($aPage['admin_users']) ||
239
					$this->_oApp->is_group_match($this->_oApp->get_groups_id(), $aPage['admin_groups']))
240
				{
241
					if(($aPage['visibility'] == 'deleted' && $this->_aReg['PAGE_TRASH'] == 'inline') ||
242
					   ($aPage['visibility'] != 'deleted'))
243
					{
244
						$aPage['iswriteable'] = true;
245
						$this->_iPagesWriteable++;
246
					}
247
				} else {
248
					if($aPage['visibility'] == 'private') { continue; }
249
				}
250
				// add this item to the secondary list of parents
251
				$this->_addToParentList($aPage);
252
				$sOutput .= $this->_createListItem($aPage);
253
			}
254
			$sOutput .= $this->_Tabs(-1).'</ul>'.PHP_EOL;
255
		}
256
		return $sOutput;
257
	}
258
/**
259
 * formating the given page object for output
260
 * @param type $aPage
261
 * @return string
262
 */
263
	private function _createListItem($aPage)
264
	{
265
	// output the current item
266
	// --- HEADER ------------------------------------------------------------------------
267
		$sOutput  = $this->_Tabs(0).'<li class="p'.$aPage['parent'].'">'.PHP_EOL
268
		          . $this->_Tabs(1).'<table class="pages_view">'.PHP_EOL
269
		          . $this->_Tabs(1).'<tbody>'.PHP_EOL
270
		          . $this->_Tabs(1).'<tr class="row_'.$this->_iLineColor.'">'.PHP_EOL;
271
	// --- TAB 1 --- (expand/collapse) ---------------------------------------------------
272
		$sOutput .= $this->_Tabs(1).'<td valign="middle" width="20" style="padding-left: '
273
		          . (int)($aPage['level']*20).'px;">';
274
		if((bool)$aPage['children']) {
275
			$sOutput .= '<a href="javascript:toggle_visibility(\'p'.$aPage['page_id'].'\');" '
276
			          . 'title="'.$this->_TEXT['EXPAND'].'/'.$this->_TEXT['COLLAPSE'].'">'
277
			          . '<span><img src="'.$this->_aReg['THEME_REL'].'/images/'
278
			          . ( ((isset($_COOKIE['p'.$aPage['page_id']]) 
279
						  && $_COOKIE['p'.$aPage['page_id']] == '1') ? 'minus' : 'plus')
280
						)
281
			          . '_16.png" onclick="toggle_plus_minus(\''.$aPage['page_id'].'\');" '
282
			          . 'name="plus_minus_'.$aPage['page_id'].'" alt="+" /></span></a>';
283
		}else {
284
			$sOutput .= '&nbsp;';
285
		}
286
		$sOutput .= '</td>'.PHP_EOL;
287
	// --- TAB 2 --- (menu title) --------------------------------------------------------
288
		$sOutput .= $this->_Tabs(0).'<td class="list_menu_title">';
289
		if($this->_oApp->get_permission('pages_modify') && $aPage['iswriteable']) {
290
			$sOutput .= '<a href="'.$this->_aReg['ACP_REL'].'/pages/modify.php?page_id='
291
			          . $aPage['page_id'].'" title="'.$this->_TEXT['MODIFY'].'">';
292
		}
293
		$sIcon = $this->_aReg['THEME_REL'].'/images/'.$aPage['visibility'].'_16.png';
294
		if(!is_readable($this->_aReg['DOCUMENT_ROOT'].$sIcon)) {
295
			$sIcon = $this->_aReg['THEME_REL'].'/images/public_16.png';
296
		}
297
		$sOutput .= '<img src="'.$sIcon.'" alt="'.$this->_TEXT['VISIBILITY'].': '
298
		          . $this->_TEXT[strtoupper($aPage['visibility'])].'" class="page_list_rights" />';
299
		if($this->_oApp->get_permission('pages_modify') && $aPage['iswriteable']) {
300
			$sOutput .= '<span class="modify_link">'.$aPage['menu_title'].'</span></a>';
301
		}else {
302
			$sOutput .=  '<span class="bold grey">'.$aPage['menu_title'].'</span>';
303
		}
304
		$sOutput .= '</td>'.PHP_EOL;
305
	// --- TAB 3 --- (page title) --------------------------------------------------------
306
		$sOutput .= $this->_Tabs(0).'<td class="list_page_title">'.$aPage['page_title'].'</td>'.PHP_EOL;
307
	// --- TAB 4 --- (page ID) -----------------------------------------------------------
308
		$sOutput .= $this->_Tabs(0).'<td class="list_page_id right">'.$aPage['page_id'].'</td>'.PHP_EOL;
309
	// --- TAB 5 --- (show this page in new window) --------------------------------------
310
		$sOutput .= $this->_Tabs(0).'<td class="list_actions">';
311
		if($aPage['visibility'] != 'deleted' && $aPage['visibility'] != 'none') {
312
			$sPageLink = $this->_aReg['WB_REL'].preg_replace(
313
			                                 '/^'.preg_quote($this->_aReg['WB_URL'], '/').'/siU', 
314
			                                 '', 
315
			                                 $this->_oApp->page_link($aPage['link'])
316
			                                );
317
			$sOutput .= '<a href="'.$sPageLink.'" target="_blank" title="'.$this->_TEXT['VIEW']
318
			          . '"><img src="'.$this->_aReg['THEME_REL'].'/images/view_16.png" alt="'
319
			          . $this->_TEXT['VIEW'].'" /></a>';
320
		}else { 
321
			$sOutput .= '<img src="'.$this->_aReg['THEME_REL'].'/images/blank_16.gif" alt=" " />'; 
322
		}
323
		$sOutput .= '</td>'.PHP_EOL;
324

    
325
	// --- TAB 6 --- (edit settings) -----------------------------------------------------
326
		$sOutput .= $this->_Tabs(0).'<td class="list_actions">';
327
		if($aPage['visibility'] != 'deleted') { 
328
			if($this->_oApp->get_permission('pages_settings') && $aPage['iswriteable']) {
329
				$sOutput .= '<a href="'.$this->_aReg['ACP_REL'].'/pages/settings.php?page_id='
330
				          . $aPage['page_id'].'" title="'.$this->_TEXT['SETTINGS'].'">'
331
				          . '<img src="'.$this->_aReg['THEME_REL'].'/images/modify_16.png" alt="'
332
				          . $this->_TEXT['SETTINGS'].'" /></a>';
333
			}
334
		}else {
335
			$sOutput .= '<a href="'.$this->_aReg['ACP_REL'].'/pages/restore.php?page_id='.$aPage['page_id'].'" '
336
			          . 'title="'.$this->_TEXT['RESTORE'].'"><img src="'.$this->_aReg['THEME_REL']
337
			          . '/images/restore_16.png" alt="'.$this->_TEXT['RESTORE'].'" /></a>';
338
		}
339
		$sOutput .= '</td>'.PHP_EOL;
340

    
341
	// --- TAB 7 --- (edit sections) -----------------------------------------------------
342
		$sOutput .= $this->_Tabs(0).'<td class="list_actions">';
343
		if( $this->_aReg['MANAGE_SECTIONS'] && $this->_oApp->get_permission('pages_add') && $aPage['iswriteable'] ) {
344
			$file = $this->_oApp->page_is_active($aPage) ? "clock_16.png" : "clock_red_16.png";
345
			$file = ($aPage['published'] && $aPage['module'] != 'menu_link') ? $file : 'noclock_16.png';
346
			$sOutput .= '<a href="'.$this->_aReg['ACP_REL'].'/pages/sections.php?page_id='
347
			          . $aPage['page_id'].'" title="'.$this->_HEADING['MANAGE_SECTIONS'].'">'
348
			          . '<img src="'.$this->_aReg['THEME_REL'].'/images/'.$file.'" alt="'
349
			          . $this->_HEADING['MANAGE_SECTIONS'].'" /></a>';
350
		}else { 
351
			$sOutput .= '<img src="'.$this->_aReg['THEME_REL'].'/images/blank_16.gif" alt=" " />'; 
352
		}
353
		$sOutput .= '</td>'.PHP_EOL;
354

    
355
	// --- TAB 8 --- (move up) -----------------------------------------------------------
356
		$sOutput .= $this->_Tabs(0).'<td class="list_actions">';
357
		if($aPage['position'] > $aPage['min_position']) {
358
			if($aPage['visibility'] != 'deleted') {
359
				if($this->_oApp->get_permission('pages_settings') && $aPage['iswriteable']) {
360
					$sOutput .= '<a href="'.$this->_aReg['ACP_REL'].'/pages/move_up.php?page_id='
361
					          . $aPage['page_id'].'" title="'.$this->_TEXT['MOVE_UP']
362
					          . '"><img src="'.$this->_aReg['THEME_REL'].'/images/up_16.png" alt="'
363
					          . $this->_TEXT['MOVE_UP'].'" /></a>';
364
				}
365
			}
366
		}
367
		$sOutput .= '</td>'.PHP_EOL;
368

    
369
	// --- TAB 9 --- (move down) ---------------------------------------------------------
370
		$sOutput .= $this->_Tabs(0).'<td class="list_actions">';
371
		if($aPage['position'] < $aPage['max_position']) {
372
			if($aPage['visibility'] != 'deleted') {
373
				if($this->_oApp->get_permission('pages_settings') && $aPage['iswriteable']) {
374
					$sOutput .= '<a href="'.$this->_aReg['ACP_REL'].'/pages/move_down.php?page_id='
375
					          . $aPage['page_id'].'" title="'.$this->_TEXT['MOVE_DOWN']
376
					          . '"><img src="'.$this->_aReg['THEME_REL'].'/images/down_16.png" alt="'
377
					          . $this->_TEXT['MOVE_DOWN'].'" /></a>';
378
				}
379
			}
380
		}
381
		$sOutput .= '</td>'.PHP_EOL;
382

    
383
	// --- TAB 10 --- (delete page) ------------------------------------------------------
384
		$sOutput .= $this->_Tabs(0).'<td class="list_actions">';
385
		if($this->_oApp->get_permission('pages_delete') && $aPage['iswriteable']) {
386
			$sOutput .= '<a href="javascript:confirm_link(pages_delete_confirm+\'?\',\''
387
			          . $this->_aReg['ACP_REL'].'/pages/delete.php?page_id='
388
			          . $this->_oApp->getIDKEY($aPage['page_id']).'\');" title="'
389
			          . $this->_TEXT['DELETE'].'"><img src="'.$this->_aReg['THEME_REL']
390
			          . '/images/delete_16.png" alt="'.$this->_TEXT['DELETE'].'" /></a>';
391
		}else { 
392
			$sOutput .= '<img src="'.$this->_aReg['THEME_REL'].'/images/blank_16.gif" alt=" " />'; 
393
		}
394
		$sOutput .= '</td>'.PHP_EOL;
395

    
396
	// --- TAB 11 --- (add child page) ---------------------------------------------------
397
		$sOutput .= $this->_Tabs(0).'<td class="list_actions">';
398
		if( 
399
			$this->_oApp->get_permission('pages_add')
400
			&& $aPage['iswriteable'] 
401
			&& ($aPage['visibility'] != 'deleted') 
402
			&& $aPage['level'] < ($this->_aReg['PAGE_LEVEL_LIMIT'] - 1)
403
		  )
404
		{
405
			$sOutput .= '<a href="javascript:add_child_page(\''.$aPage['page_id'].'\');" '
406
			          . 'title="'.$this->_HEADING['ADD_CHILD_PAGE'].'"><img src="'
407
			          . $this->_aReg['THEME_REL'].'/images/siteadd.png" name="addpage_'.$aPage['page_id']
408
			          . '" alt="'.$this->_HEADING['ADD_CHILD_PAGE'].'" /></a>';
409
		}else { 
410
			$sOutput .= '&nbsp;'; 
411
		}
412
		$sOutput .= '</td>'.PHP_EOL;
413
	// --- TAB 12 --- (show language) ----------------------------------------------------
414
		$sOutput .= $this->_Tabs(0).'<td class="list_page_id center">'.$aPage['language'].'</td>'.PHP_EOL;
415
	// --- FOOTER ------------------------------------------------------------------------
416
		$sOutput .= $this->_Tabs(-1).'</tr>'.PHP_EOL
417
		          . $this->_Tabs(-1).'</tbody>'.PHP_EOL
418
		          . $this->_Tabs(-1).'</table>'.PHP_EOL;
419
	// if there children, iterate through this children now
420
		if((bool)$aPage['children']) {
421
			$sOutput .= $this->_IterateTree($aPage['page_id']);
422
		}
423
		$sOutput .= $this->_Tabs(-1).'</li>'.PHP_EOL;
424
		return $sOutput;
425
	} // end of method _createListItem
426
/**
427
 * build a list of possible parent pages
428
 * @param array $aPage 
429
 */	
430
	private function _addToParentList(array $aPage)
431
	{
432
		if( ($aPage['level'] < ($this->_aReg['PAGE_LEVEL_LIMIT'] - 1))
433
			&& $aPage['iswriteable'] 
434
			&& ($aPage['visibility'] != 'deleted')
435
			&& $this->_oApp->get_permission('pages_add') ) 
436
		{
437
			$aNewEntry = array();
438
			$aNewEntry['ID']             = $aPage['page_id'];
439
			$aNewEntry['TITLE']          = $aPage['menu_title'];
440
			$aNewEntry['DISABLED']       = ($aPage['iswriteable'] ? 0 : 1);
441
			$aNewEntry['PARENT']         = $aPage['parent'];
442
			$aNewEntry['FLAG_ROOT_ICON'] = '';
443
			$aNewEntry['LEVEL']          = $aPage['level'];
444
			$aNewEntry['LANGUAGE']       = $aPage['language'];
445
			$this->_aParentList[]        = $aNewEntry;
446
		}
447
	}
448
	
449
} // end of class PageTree
(1-1/23)