예제 #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);
		}
예제 #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);
		}
예제 #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);
 }
예제 #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);
		}
예제 #5
0
		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);
		}
예제 #6
0
파일: PDO.cs 프로젝트: jafin/Phalanger
 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);
 }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #10
0
 public static object __construct(object instance, PhpStack stack)
 {
     var filename = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((SplFileInfo)instance).__construct(stack.Context, filename);
 }
예제 #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);
 }
예제 #12
0
파일: PDO.cs 프로젝트: hansdude/Phalanger
 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);
 }
예제 #13
0
파일: PDO.cs 프로젝트: hansdude/Phalanger
 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);
 }
예제 #14
0
파일: DateTime.cs 프로젝트: proff/Phalanger
        [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);
예제 #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);
 }
예제 #16
0
파일: DateTime.cs 프로젝트: proff/Phalanger
        public static object modify(object instance, PhpStack stack)
        {
            var modify = stack.PeekValue(1);
            stack.RemoveFrame();

            return ((__PHP__DateTime)instance).modify(stack.Context, modify);
        }
예제 #17
0
파일: DateTime.cs 프로젝트: proff/Phalanger
 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);
 }
예제 #18
0
 public static object append(object instance, PhpStack stack)
 {
     var value = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((ArrayIterator)instance).append(stack.Context, value);
 }
예제 #19
0
파일: PDO.cs 프로젝트: hansdude/Phalanger
 public static object getAttribute(object instance, PhpStack stack)
 {
     object attribute = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((PDO)instance).getAttribute(stack.Context, attribute);
 }
예제 #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);
 }
예제 #21
0
파일: PDO.cs 프로젝트: hansdude/Phalanger
 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);
 }
예제 #22
0
 public static object offsetExists(object instance, PhpStack stack)
 {
     object index = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((ArrayIterator)instance).offsetExists(stack.Context, index);
 }
예제 #23
0
파일: PDO.cs 프로젝트: hansdude/Phalanger
 public static object exec(object instance, PhpStack stack)
 {
     object statement = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((PDO)instance).exec(stack.Context, statement);
 }
예제 #24
0
 public static object unserialize(object instance, PhpStack stack)
 {
     object data = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((ArrayIterator)instance).unserialize(stack.Context, data);
 }
예제 #25
0
 public static object seek(object instance, PhpStack stack)
 {
     object position = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((DirectoryIterator)instance).seek(stack.Context, position);
 }
예제 #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);            
 }
예제 #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);
 }
예제 #28
0
파일: DateTime.cs 프로젝트: proff/Phalanger
        public static object setTimeZone(object instance, PhpStack stack)
        {
            var tz = stack.PeekValue(1);
            stack.RemoveFrame();

            return ((__PHP__DateTime)instance).setTimeZone(stack.Context, tz);
        }
예제 #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);
        }
예제 #30
0
파일: DateTime.cs 프로젝트: proff/Phalanger
        public static object format(object instance, PhpStack stack)
        {
            var format = stack.PeekValue(1);
            stack.RemoveFrame();

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