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); }
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); }
public static object fetchAll(object instance, PhpStack stack) { object fetch_style = stack.PeekReferenceOptional(1); object fetch_argument = stack.PeekReferenceOptional(2); object ctor_args = stack.PeekReferenceOptional(3); stack.RemoveFrame(); return ((PDOStatement)instance).fetchAll(stack.Context, fetch_style, fetch_argument, ctor_args); }
public static object query(object instance, PhpStack stack) { object query = stack.PeekValue(1); object resultType = stack.PeekValueOptional(2); PhpReference error = stack.PeekReferenceOptional(3); stack.RemoveFrame(); return ((SQLiteDatabase)instance).query(stack.Context, query, resultType, error); }
public static object exec(object instance, PhpStack stack) { object query = stack.PeekValue(1); object error = stack.PeekReferenceOptional(2); stack.RemoveFrame(); return ((SQLiteDatabase)instance).exec(stack.Context, query, error); }