blob: 1ecb25945a0e34a72405acc91c54a86df40ebe42 (
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
|
<?php
/**
* get_content_list
*
* @author Christian Fowler>
* @version $Revision: 1.2 $
* @package Liberty
* @subpackage functions
*/
/**
* required setup
*/
require_once( LIBERTY_PKG_PATH."LibertyContent.php" );
global $gContent;
global $gLibertySystem;
if( empty( $gContent ) || !is_object( $gContent ) ) {
$gContent = new LibertyContent();
}
$contentSelect = empty( $_REQUEST['content_type'] ) ? NULL : $_REQUEST['content_type'];
// get_content_list_inc doesn't use $_REQUEST parameters as it might not be the only list in the page that needs sorting and limiting
$contentList = $gContent->getContentList( $contentSelect, isset( $offset_content ) ? $offset_content : 0, isset( $max_content ) ? $max_content : 500, isset( $content_sort_mode ) ? $content_sort_mode : 'title_asc', empty( $_REQUEST["find_objects"] ) ? NULL : $_REQUEST["find_objects"], isset( $_REQUEST['user_id'] ) ? $_REQUEST['user_id'] : NULL );
$contentTypes = array();
foreach( $gLibertySystem->mContentTypes as $cType ) {
$contentTypes[$cType['content_type_guid']] = $cType['content_description'];
}
?>
|