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); }
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); }