001    /**
002     * Implements the Cold Fusion Function arrayappend
003     */
004    package railo.runtime.functions.arrays;
005    
006    import railo.runtime.PageContext;
007    import railo.runtime.exp.PageException;
008    import railo.runtime.ext.function.Function;
009    import railo.runtime.type.Array;
010    
011    /**
012     * implementation of the Function arrayAppend
013     */
014    public final class ArrayAppend implements Function {
015            
016            private static final long serialVersionUID = 5989673419120862625L;
017    
018            /**
019             * @param pc
020             * @param array
021             * @param object
022             * @return has appended
023             * @throws PageException
024             */
025            public static boolean call(PageContext pc , Array array, Object object) throws PageException {
026                    array.append(object);
027                    return true;
028            }
029    }