Location: PHPKode > projects > TikiPro Web Framework > tikipro/fisheye/templates/center_list_collections.php
<?php
	global $gQueryUser;
	include_once( LIBERTY_PKG_PATH.'LibertyStructure.php' );
	include_once( FISHEYE_PKG_PATH.'FisheyeCollection.php' );
	$gStructure = new LibertyStructure();

	$pListHash = &$_REQUEST;
	if( isset( $gQueryUser->mUserId ) ) {
		$pListHash['user_id'] = $gQueryUser->mUserId;
	}

	$pListHash['content_type_guid'] = FISHEYECOLLECTION_CONTENT_TYPE_GUID;
	if( !empty( $_REQUEST['user_id'] ) ) {
		$pListHash['user_id'] = $_REQUEST['user_id'];
	}

	$collections = $gStructure->getList( $pListHash );
	$smarty->assign_by_ref( 'collections', $collections['data'] );

	foreach( array_keys( $_REQUEST ) as $key ) {
		if( !empty( $_REQUEST[$key] ) ) {
			$smarty->assign( $key, $_REQUEST[$key] );
		}
	}

?>
Return current item: TikiPro Web Framework