001 /** 002 * Implements the Cold Fusion Function gettickcount 003 */ 004 package railo.runtime.functions.other; 005 006 import railo.runtime.PageContext; 007 import railo.runtime.exp.PageException; 008 import railo.runtime.ext.function.Function; 009 import railo.runtime.op.Caster; 010 import railo.runtime.type.Struct; 011 import railo.runtime.type.StructImpl; 012 import railo.runtime.type.scope.UndefinedImpl; 013 014 public final class IntergralContext implements Function { 015 public static Struct call(PageContext pc) throws PageException { 016 Struct sct=new StructImpl(); 017 sct.setEL("scopeNames", Caster.toArray(((UndefinedImpl)pc.undefinedScope()).getScopeNames())); 018 //sct.setEL("stack", FDThreadImpl.getStack((PageContextImpl)pc)); 019 020 return sct; 021 } 022 }