예제 #1
0
        public static PhpArray ob_list_handlers(Context ctx)
        {
            BufferedOutput bo     = ctx.BufferedOutput;
            var            result = new PhpArray(bo.Level);

            for (int i = 0; i < bo.Level; i++)
            {
                result.Add(bo.GetLevelName(i));
            }

            return(result);
        }
예제 #2
0
        public static PhpArray GetHandlers()
        {
            BufferedOutput bo     = ScriptContext.CurrentContext.BufferedOutput;
            PhpArray       result = new PhpArray(bo.Level, 0);

            for (int i = 0; i < bo.Level; i++)
            {
                result.Add(bo.GetLevelName(i));
            }

            return(result);
        }