Ejemplo n.º 1
0
        /// <summary>
        /// Gets the contents of the current buffer and cleans it.
        /// </summary>
        /// <returns>The content of type <see cref="string"/> or <see cref="byte"/> or <c>false</c>.</returns>
        public static PhpValue ob_get_clean(Context ctx)
        {
            BufferedOutput bo = ctx.BufferedOutput;

            var result = bo.GetContent();

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

            BufferedOutput bo = context.BufferedOutput;

            object result = bo.GetContent();

            bo.Clean();
            EndInternal(context, true);
            return(result);
        }