Beispiel #1
0
		public static object registerNamespace(object instance, PhpStack stack)
		{
			stack.CalleeName = "registerNamespace";
			
			object arg1 = stack.PeekValue(1);
			
			object arg2 = stack.PeekValue(2);
			stack.RemoveFrame();
			return ((DOMXPath)instance).registerNamespace(stack.Context, arg1, arg2);
		}
Beispiel #2
0
		public static object __soapCall(object instance, PhpStack stack)
		{
			stack.CalleeName = "__soapCall";
			
			object arg1 = stack.PeekValue(1);
			
			object arg2 = stack.PeekValue(2);
			stack.RemoveFrame();
			return ((SoapClient)instance).__soapCall(stack.Context, arg1, arg2);
		}
Beispiel #3
0
 public static object setFetchMode(object instance, PhpStack stack)
 {
     object fetch_to_mode = stack.PeekValue(1);
     object fetch_to_dest = stack.PeekValueOptional(2);
     object fetch_to_args = stack.PeekValueOptional(3);
     return ((PDOStatement)instance).setFetchMode(stack.Context, fetch_to_mode, fetch_to_dest, fetch_to_args);
 }
Beispiel #4
0
		public static object __construct(object instance, PhpStack stack)
		{
			stack.CalleeName = "__construct";
			
			object arg1 = stack.PeekValue(1);
			stack.RemoveFrame();
			return ((DOMXPath)instance).__construct(stack.Context, arg1);
		}
		public static object item(object instance, PhpStack stack)
		{
			stack.CalleeName = "item";
			
			object arg1 = stack.PeekValue(1);
			stack.RemoveFrame();
			return ((DOMNodeList)instance).item(stack.Context, arg1);
		}
Beispiel #6
0
 public static object __construct(object instance, PhpStack stack)
 {
     object argDSN = stack.PeekValue(1);
     object argUsername = stack.PeekReferenceOptional(2);
     object argPassword = stack.PeekReferenceOptional(3);
     object argDriverOptions = stack.PeekReferenceOptional(4);
     stack.RemoveFrame();
     return ((PDO)instance).__construct(stack.Context, argDSN, argUsername, argPassword, argDriverOptions);
 }
Beispiel #7
0
        public static object Foo(object instance, PhpStack stack)
        {
            // setup the stack, get arguments from the stack
            stack.CalleeName = "Foo";
            object arg1 = stack.PeekValue(1);
            stack.RemoveFrame();

            // call the actual Foo with arguments obtained from the stack
            return ((MyPhpClass)instance).Foo(stack.Context, arg1);
        }
Beispiel #8
0
        public static object __construct(object instance, PhpStack stack)
        {
            object argFileName = stack.PeekValue(1);
            object argMode = stack.PeekValueOptional(2);
            PhpReference error = stack.PeekReferenceOptional(3);
            stack.RemoveFrame();

            string filename = PHP.Core.Convert.ObjectToString(argFileName);
            int mode = PHP.Core.Convert.ObjectToInteger(argMode);
            return ((SQLiteDatabase)instance).__construct(stack.Context, filename, mode, error);
        }
Beispiel #9
0
        public static object getModifierNames(object instance, PhpStack stack)
        {
            stack.CalleeName = "getModifierNames";
            object arg1 = stack.PeekValue(1);
            stack.RemoveFrame();

            int typed1 = Core.Convert.ObjectToInteger(arg1);
            return getModifierNames(typed1);
        }
Beispiel #10
0
 public static object __construct(object instance, PhpStack stack)
 {
     var filename = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((SplFileInfo)instance).__construct(stack.Context, filename);
 }
Beispiel #11
0
 public static new object __construct(object instance, PhpStack stack)
 {
     var path = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((DirectoryIterator)instance).__construct(stack.Context, path);
 }
Beispiel #12
0
 public static object prepare(object instance, PhpStack stack)
 {
     object statement = stack.PeekValue(1);
     object driver_options = stack.PeekValueOptional(2);
     stack.RemoveFrame();
     return ((PDO)instance).prepare(stack.Context, statement, driver_options);
 }
Beispiel #13
0
 public static object quote(object instance, PhpStack stack)
 {
     object str = stack.PeekValue(1);
     object paramType = stack.PeekValueOptional(2);
     stack.RemoveFrame();
     return ((PDO)instance).quote(stack.Context, str, paramType);
 }
Beispiel #14
0
        [EditorBrowsable(EditorBrowsableState.Never)]
        public static object setTime(object instance, PhpStack stack)
        {
            var arg1 = stack.PeekValue(1);
            var arg2 = stack.PeekValue(2);
            var arg3 = stack.PeekValue(3);
            stack.RemoveFrame();

            return ((__PHP__DateTime)instance).setTime(stack.Context, arg1, arg2, arg3);
Beispiel #15
0
 public static object uksort(object instance, PhpStack stack)
 {
     var cmp_function = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((ArrayIterator)instance).uksort(stack.Context, cmp_function);
 }
Beispiel #16
0
        public static object modify(object instance, PhpStack stack)
        {
            var modify = stack.PeekValue(1);
            stack.RemoveFrame();

            return ((__PHP__DateTime)instance).modify(stack.Context, modify);
        }
Beispiel #17
0
 public static object createFromFormat(object instance, PhpStack stack)
 {
     var format = stack.PeekValue(1);
     var time = stack.PeekValue(2);
     var timezone = stack.PeekValueOptional(3);
     stack.RemoveFrame();
     return createFromFormat(stack.Context, format, time, timezone);
 }
Beispiel #18
0
 public static object append(object instance, PhpStack stack)
 {
     var value = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((ArrayIterator)instance).append(stack.Context, value);
 }
Beispiel #19
0
 public static object getAttribute(object instance, PhpStack stack)
 {
     object attribute = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((PDO)instance).getAttribute(stack.Context, attribute);
 }
Beispiel #20
0
 public static object offsetSet(object instance, PhpStack stack)
 {
     object index = stack.PeekValue(1);
     object value = stack.PeekValue(2);
     stack.RemoveFrame();
     return ((ArrayIterator)instance).offsetSet(stack.Context, index, value);
 }
Beispiel #21
0
 public static object query(object instance, PhpStack stack)
 {
     object statement = stack.PeekValue(1);
     object fetch_to_mode = stack.PeekValueOptional(2);
     object fetch_to_dest = stack.PeekValueOptional(3);
     object fetch_to_args = stack.PeekValueOptional(4);
     stack.RemoveFrame();
     return ((PDO)instance).query(stack.Context, statement, fetch_to_mode, fetch_to_dest, fetch_to_args);
 }
Beispiel #22
0
 public static object offsetExists(object instance, PhpStack stack)
 {
     object index = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((ArrayIterator)instance).offsetExists(stack.Context, index);
 }
Beispiel #23
0
 public static object exec(object instance, PhpStack stack)
 {
     object statement = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((PDO)instance).exec(stack.Context, statement);
 }
Beispiel #24
0
 public static object unserialize(object instance, PhpStack stack)
 {
     object data = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((ArrayIterator)instance).unserialize(stack.Context, data);
 }
Beispiel #25
0
 public static object seek(object instance, PhpStack stack)
 {
     object position = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((DirectoryIterator)instance).seek(stack.Context, position);
 }
Beispiel #26
0
 public static object __call(object instance, PhpStack stack)
 {
     var name = stack.PeekValue(1);
     var args = stack.PeekValue(2);
     stack.RemoveFrame();
     return ((IteratorIterator)instance).__call(stack.Context, name, args);            
 }
Beispiel #27
0
 public static new object __construct(object instance, PhpStack stack)
 {
     var path = stack.PeekValue(1);
     var flags = stack.PeekValueOptional(2);
     stack.RemoveFrame();
     return ((RecursiveDirectoryIterator)instance).__construct(stack.Context, path, flags);
 }
Beispiel #28
0
        public static object setTimeZone(object instance, PhpStack stack)
        {
            var tz = stack.PeekValue(1);
            stack.RemoveFrame();

            return ((__PHP__DateTime)instance).setTimeZone(stack.Context, tz);
        }
Beispiel #29
0
        public static object export(object instance, PhpStack stack)
        {
            stack.CalleeName = "export";
            object arg1 = stack.PeekValue(1);
            object arg2 = stack.PeekValueOptional(2);
            stack.RemoveFrame();

            Reflector typed1 = arg1 as Reflector;
            if (typed1 == null) { PhpException.InvalidArgumentType("reflector", "Reflector"); return null; }
            bool typed2 = (ReferenceEquals(arg2, Arg.Default)) ? false : Core.Convert.ObjectToBoolean(arg2);

            return export(typed1, typed2);
        }
Beispiel #30
0
        public static object format(object instance, PhpStack stack)
        {
            var format = stack.PeekValue(1);
            stack.RemoveFrame();

            return ((__PHP__DateTime)instance).format(stack.Context, format);
        }