Exemplo n.º 1
0
        /// <summary>
        /// Gets the content of the current buffer and decreases the level of buffering.
        /// </summary>
        /// <returns>The content of the buffer.</returns>
        public static PhpValue ob_get_flush(Context ctx)
        {
            BufferedOutput bo = ctx.BufferedOutput;

            var result = bo.GetContent();

            EndInternal(ctx, true);
            return(result);
        }
Exemplo n.º 2
0
        public static object GetAndFlush()
        {
            ScriptContext  context = ScriptContext.CurrentContext;
            BufferedOutput bo      = context.BufferedOutput;

            object result = bo.GetContent();

            EndInternal(context, true);
            return(result);
        }