Exemple #1
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);
 }
Exemple #2
0
 public static object fetch(object instance, PhpStack stack)
 {
     object style = stack.PeekValueOptional(1);
     object orientation = stack.PeekValueOptional(2);
     object cursor_offset = stack.PeekValueOptional(3);
     stack.RemoveFrame();
     return ((PDOStatement)instance).fetch(stack.Context, style, orientation, cursor_offset);
 }
Exemple #3
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);
        }
Exemple #4
0
 public static object hasChildren(object instance, PhpStack stack)
 {
     var allowLinks = stack.PeekValueOptional(1);
     stack.RemoveFrame();
     return ((RecursiveDirectoryIterator)instance).hasChildren(stack.Context/*, allowLinks*/);
 }
Exemple #5
0
 public static object __construct(object instance, PhpStack stack)
 {
     object argDSN = stack.PeekValue(1);
     object argUsername = stack.PeekValueOptional(2);
     object argPassword = stack.PeekValueOptional(3);
     object argDriverOptions = stack.PeekValueOptional(4);
     stack.RemoveFrame();
     return ((PDO)instance).__construct(stack.Context, argDSN, argUsername, argPassword, argDriverOptions);
 }
Exemple #6
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);
 }
Exemple #7
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);
 }
Exemple #8
0
 public static object __construct(object instance, PhpStack stack)
 {
     var arg1 = stack.PeekValueOptional(1);
     var arg2 = stack.PeekValueOptional(2);
     stack.RemoveFrame();
     return ((__PHP__DateTime)instance).__construct(stack.Context, arg1, arg2);
 }
Exemple #9
0
 public static object getSubIterator(object instance, PhpStack stack)
 {
     var level = stack.PeekValueOptional(1);
     stack.RemoveFrame();
     return ((RecursiveIteratorIterator)instance).getSubIterator(stack.Context, level);
 }
Exemple #10
0
 public static object fetchColumn(object instance, PhpStack stack)
 {
     object column_number = stack.PeekValueOptional(1);
     stack.RemoveFrame();
     return ((PDOStatement)instance).fetchColumn(stack.Context, column_number);
 }
Exemple #11
0
 public static object execute(object instance, PhpStack stack)
 {
     object input_parameters = stack.PeekValueOptional(1);
     stack.RemoveFrame();
     return ((PDOStatement)instance).execute(stack.Context, input_parameters);
 }
Exemple #12
0
 public static object bindValue(object instance, PhpStack stack)
 {
     object parameter = stack.PeekValue(1);
     object value = stack.PeekReference(2);
     object data_type = stack.PeekValueOptional(3);
     stack.RemoveFrame();
     return ((PDOStatement)instance).bindValue(stack.Context, parameter, value, data_type);
 }
 public static object getClosure(object instance, PhpStack stack)
 {
     var @object = stack.PeekValueOptional(1);
     stack.RemoveFrame();
     return ((ReflectionMethod)instance).getClosure(stack.Context, @object);
 }
Exemple #14
0
		public static object __construct(object instance, PhpStack stack)
		{
			stack.CalleeName = "__construct";
			
			object arg1 = stack.PeekValue(1);
			
			object arg2 = stack.PeekValueOptional(2);
			stack.RemoveFrame();
			return ((SoapClient)instance).__construct(stack.Context, arg1, arg2);
		}
Exemple #15
0
 public static object attach(object instance, PhpStack stack)
 {
     var storage = stack.PeekValue(1);
     var data = stack.PeekValueOptional(2);
     stack.RemoveFrame();
     return ((SplObjectStorage)instance).attach(stack.Context, storage, data);
 }
Exemple #16
0
 public static object __construct(object instance, PhpStack stack)
 {
     object iterator = stack.PeekValue(1);
     object classname = stack.PeekValueOptional(2);
     stack.RemoveFrame();
     return ((IteratorIterator)instance).__construct(stack.Context, iterator, classname);
 }
Exemple #17
0
 public static object __construct(object instance, PhpStack stack)
 {
     object iterator = stack.PeekValue(1);
     object mode = stack.PeekValueOptional(2);
     object flags = stack.PeekValueOptional(3);
     stack.RemoveFrame();
     return ((RecursiveIteratorIterator)instance).__construct(stack.Context, iterator, mode, flags);
 }
Exemple #18
0
		public static object __construct(object instance, PhpStack stack)
		{
			object message = stack.PeekValueOptional(1);
			object code = stack.PeekValueOptional(2);
            object previous = stack.PeekValueOptional(3);
			stack.RemoveFrame();
			return ((Exception)instance).__construct(stack.Context, message, code, previous);
		}
Exemple #19
0
 public static object setMaxDepth(object instance, PhpStack stack)
 {
     object max_depth = stack.PeekValueOptional(1);
     stack.RemoveFrame();
     return ((RecursiveIteratorIterator)instance).setMaxDepth(stack.Context, max_depth);
 }
Exemple #20
0
 public static new object __construct(object instance, PhpStack stack)
 {
     object message = stack.PeekValueOptional(1);
     object code = stack.PeekValueOptional(2);
     object severity = stack.PeekValueOptional(3);
     object filename = stack.PeekValueOptional(4);
     object lineno = stack.PeekValueOptional(5);
     object previous = stack.PeekValueOptional(6);
     stack.RemoveFrame();
     return ((ErrorException)instance).__construct(stack.Context, message, code, severity, filename, lineno, previous);
 }
Exemple #21
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);
 }
Exemple #22
0
 public static new object __construct(object instance, PhpStack stack)
 {
     object faultcode = stack.PeekValue(1);
     object faultstring = stack.PeekValue(2);
     object faultactor = stack.PeekValueOptional(3);
     object detail = stack.PeekValueOptional(4);
     object faultname = stack.PeekValueOptional(5);
     object headerfault = stack.PeekValueOptional(6);
     stack.RemoveFrame();
     return ((SoapFault)instance).__construct(stack.Context, faultcode, faultstring, faultactor, detail, faultname, headerfault);
 }
Exemple #23
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);
 }
Exemple #24
0
        internal static object PDO_sqliteCreateFunction(object instance, PhpStack stack)
        {
            string func_name = PHP.Core.Convert.ObjectToString(stack.PeekValue(1));
            PhpCallback callback = PHP.Core.Convert.ObjectToCallback(stack.PeekValue(2));
            object nbr = stack.PeekValueOptional(3);
            stack.RemoveFrame();

            int nbr_arg;
            if (nbr == null)
            {
                nbr_arg = -1;
            }
            else
            {
                nbr_arg = PHP.Core.Convert.ObjectToInteger(nbr);
            }

            Delegate d = new Func<object[], object>(callback.Invoke);

            SQLiteFunction.RegisterFunction(func_name, FunctionType.Scalar, nbr_arg, d);
            return null;
        }
Exemple #25
0
 public static object lastInsertId(object instance, PhpStack stack)
 {
     object name = stack.PeekValueOptional(1);
     stack.RemoveFrame();
     return ((PDO)instance).lastInsertId(stack.Context, name);
 }
Exemple #26
0
 public static object getStaticPropertyValue(object instance, PhpStack stack)
 {
     object argName = stack.PeekValue(1);
     object argDefault = stack.PeekValueOptional(2);
     stack.RemoveFrame();
     return ((ReflectionClass)instance).getStaticPropertyValue(stack.Context, argName, argDefault);
 }
Exemple #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);
 }
Exemple #28
0
 public static object getMethods(object instance, PhpStack stack)
 {
     var filter = stack.PeekValueOptional(1);
     stack.RemoveFrame();
     return ((ReflectionClass)instance).getMethods(stack.Context, filter);
 }
Exemple #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);
        }
Exemple #30
0
 public static object getProperty(object instance, PhpStack stack)
 {
     var name = stack.PeekValueOptional(1);
     stack.RemoveFrame();
     return ((ReflectionClass)instance).getProperty(stack.Context, name);
 }