blob: 5a29131ca666339fa33d6e6ec5e29be2f835c2ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?php
/**
* $Header
*
* @author xing <xing@synapse.plus.com>
* @version $Revision: 1.8 $
* @package pigeonholes
* @subpackage functions
*/
/**
* required setup
*/
require_once("../bit_setup_inc.php");
$gBitSystem->verifyPackage( 'pigeonholes' );
$gBitSystem->verifyPermission( 'bit_p_view_pigeonholes' );
include_once( PIGEONHOLES_PKG_PATH.'lookup_pigeonholes_inc.php' );
$listHash = &$_REQUEST;
$listHash['load_only_root'] = TRUE;
$listHash['sort_mode'] = !empty( $listHash['sort_mode'] ) ? $listHash['sort_mode'] : 'title_asc';
$pigeonList = $gContent->getList( $listHash );
// set up structure related stuff
if( !empty( $pigeonList ) ) {
foreach( $pigeonList as $key => $pigeonhole ) {
if( empty( $gStructure ) ) {
$gStructure = new LibertyStructure();
}
$pigeonList[$key]['subtree'] = $gStructure->getSubTree( $pigeonhole['root_structure_id'] );
}
$gBitSmarty->assign( 'pigeonList', $pigeonList );
}
$gBitSmarty->assign( 'listInfo', $listHash['listInfo'] );
$gBitSystem->display( 'bitpackage:pigeonholes/list.tpl', tra( 'List Categories' ) );
?>
|