kernel/classes/eznodeviewfunctions.php
static function generateCallback( $file, $args )
    {
        extract( $args );

        $res = eZNodeViewFunctions::generateNodeViewData( $tpl, $node, $object, $languageCode, $viewMode, $offset,
                                                          $viewParameters, $collectionAttributes, $validation );


        // Check if cache time = 0 (viewcache disabled)
        $store = $res['cache_ttl'] != 0;
        // or if explicitly turned off
        if ( !$viewCacheEnabled )
            $store = false;
        $retval = array( 'content' => $res,
                         'scope'   => 'viewcache',
                         'store'   => $store );
        if ( $store )
            $retval['binarydata'] = serialize( $res );

        return $retval;
    }
static function generateCallback( $file, $args )
    {
        extract( $args );

        $res = eZNodeViewFunctions::generateNodeViewData( $tpl, $node, $object, $languageCode, $viewMode, $offset,
                                                          $viewParameters, $collectionAttributes, $validation );


        // Check if cache time = 0 (viewcache disabled)
        $store = $res['cache_ttl'] != 0;
        // or if explicitly turned off
        if ( !$viewCacheEnabled )
            $store = false;
        $retval = array( 'content' => $res,
                         'scope'   => 'viewcache',
                         'store'   => $store );
        if ( $store )
            $retval['binarydata'] = serialize( $res );

        return $retval;
    }
static function generateCallback ( $ file , $ args ) { extract ( $ args ) ; $ res = eZNodeViewFunctions :: generateNodeViewData ( $ tpl , $ node , $ object , $ languageCode , $ viewMode , $ offset , $ viewParameters , $ collectionAttributes , $ validation ) ; // Check if cache time = 0 (viewcache disabled) $ store = $ res [ 'cache_ttl' ] != 0 ; // or if explicitly turned off if ( ! $ viewCacheEnabled ) $ store = false ; $ retval = array ( 'content' => $ res , 'scope' => 'viewcache' , 'store' => $ store ) ; if ( $ store ) $ retval [ 'binarydata' ] = serialize ( $ res ) ; return $ retval ; }
back to eZClusterFileHandler for processing.
back to eZClusterFileHandler for processing .