void fetchAlbumTree(
[
$itemId = null], [
$depth = null], [
$userId = null] 
)
     |   
     | 
 
	
			Parameters:
			
					| 
				   | 
				
				$itemId:  | 
				
							 | 
					| 
				   | 
				
				$depth:  | 
				
							 | 
					| 
				   | 
				
				$userId:  | 
				
							 | 
				
	
	API Tags:
  
    | See:   | GalleryCoreApi::fetchAlbumTree | 
  
		
		
	
 
	
    
     
		void fetchChildCounts(
$itemIds, [
$userId = null] 
)
     |   
     | 
 
	
			Parameters:
			
	
	API Tags:
  
    | See:   | GalleryCoreApi::fetchChildCounts | 
  
		
		
	
 
	
    
     
		void fetchDescendentCounts(
$itemIds, [
$userId = null] 
)
     |   
     | 
 
	
			Parameters:
			
	
	API Tags:
  
    | See:   | GalleryCoreApi::fetchDescendentCounts | 
  
		
		
	
 
	
    
     
		void fetchItemIdCount(
$itemType, [
$permission = 'core.view'], [
$userId = null] 
)
     |   
     | 
 
	
			Parameters:
			
					| 
				   | 
				
				$itemType:  | 
				
							 | 
					| 
				   | 
				
				$permission:  | 
				
							 | 
					| 
				   | 
				
				$userId:  | 
				
							 | 
				
	
	API Tags:
  
    | See:   | GalleryCoreApi::fetchItemIdCount | 
  
		
		
	
 
	
    
     
		void fetchThemeId(
$item 
)
     |   
     | 
 
	
			Parameters:
			
	
	API Tags:
  
    | See:   | GalleryCoreApi::fetchThemeId | 
  
		
		
	
 
	
    
     
		array fetchUncachedDescendentCounts(
array
$itemIds, int
$userId 
)
     |   
     | 
 
	Fetch the number of descendents for a given item
			Parameters:
			
					| 
				array   | 
				
				$itemIds:  | 
				
				 the item ids			 | 
					| 
				int   | 
				
				$userId:  | 
				
				 an optional user id (default is the current user)			 | 
				
	
	API Tags:
  
    | Return:   | GalleryStatus a status code                array(id => ##, id => ##) |