$Result['content'] = $resultContent; } } break; case eZModuleOperationInfo::STATUS_CANCELLED: $Result = array(); $Result['content'] = "Content view cancelled<br/>"; break; } return $Result; } else { $localVars = array("cacheFileArray", "NodeID", "Module", "tpl", "LanguageCode", "ViewMode", "Offset", "ini", "cacheFileArray", "viewParameters", "collectionAttributes", "validation"); if ($viewCacheEnabled) { $user = eZUser::currentUser(); $cacheFileArray = eZNodeviewfunctions::generateViewCacheFile($user, $NodeID, $Offset, $layout, $LanguageCode, $ViewMode, $viewParameters, false); $cacheFilePath = $cacheFileArray['cache_path']; $cacheFile = eZClusterFileHandler::instance($cacheFilePath); $args = compact($localVars); $Result = $cacheFile->processCache(array('eZNodeviewfunctions', 'contentViewRetrieve'), array('eZNodeviewfunctions', 'contentViewGenerate'), null, null, $args); return $Result; } else { $cacheFileArray = array('cache_dir' => false, 'cache_path' => false); $args = compact($localVars); $data = eZNodeviewfunctions::contentViewGenerate(false, $args); // the false parameter will disable generation of the 'binarydata' entry return $data['content']; // Return the $Result array } } // Looking for some view-cache code? // Try the eZNodeviewfunctions class for enlightenment.
if ( $viewCacheEnabled ) { $cacheFileArray = eZNodeviewfunctions::generateViewCacheFile( eZUser::currentUser(), $NodeID, $Offset, $layout, $LanguageCode, $ViewMode, $viewParameters, false ); return eZClusterFileHandler::instance( $cacheFileArray['cache_path'] ) ->processCache( array( 'eZNodeviewfunctions', 'contentViewRetrieve' ), array( 'eZNodeviewfunctions', 'contentViewGenerate' ), null, null, $args ); } $data = eZNodeviewfunctions::contentViewGenerate( false, $args ); // the false parameter will disable generation of the 'binarydata' entry return $data['content']; // Return the $Result array } // Looking for some view-cache code? // Try the eZNodeviewfunctions class for enlightenment. ?>