public static function getModuleData( $var, $default=null )
    {
        if ( strpos( $var, 'module_params/' ) === 0 )
        {
            return self::getModuleParamsData( $var, $default );
        }
        else  if ( strpos( $var, 'content_info/' ) === 0 || strpos( $var, 'module_result/' ) === 0 )
        {
            return self::getModuleResultData( $var, $default );
        }
        else
        {
            eZPerfLoggerDebug::writeWarning( "Can not recover module result variable $var", __METHOD__ );
            return $default;
        }
    }
public static function getModuleData( $var, $default=null )
    {
        if ( strpos( $var, 'module_params/' ) === 0 )
        {
            return self::getModuleParamsData( $var, $default );
        }
        else  if ( strpos( $var, 'content_info/' ) === 0 || strpos( $var, 'module_result/' ) === 0 )
        {
            return self::getModuleResultData( $var, $default );
        }
        else
        {
            eZPerfLoggerDebug::writeWarning( "Can not recover module result variable $var", __METHOD__ );
            return $default;
        }
    }
public static function getModuleData ( $ var , $ default = null ) { if ( strpos ( $ var , 'module_params/' ) === 0 ) { return self :: getModuleParamsData ( $ var , $ default ) ; } else if ( strpos ( $ var , 'content_info/' ) === 0 || strpos ( $ var , 'module_result/' ) === 0 ) { return self :: getModuleResultData ( $ var , $ default ) ; } else { eZPerfLoggerDebug :: writeWarning ( "Can not recover module result variable $var" , __METHOD__ ) ; return $ default ; } }
Encapsulates retrieval of module_result data, to make it available globally,
across all eZP versions.

@param string $var var name, should start with content_info/, module_result/ or module_params/
@param mixed $default a value to return if desired data is not present in module_result
@return mixed
Encapsulates retrieval of module_result data to make it available globally across all eZP versions .