本文整理汇总了C#中PHP.Core.PhpStack.PeekReferenceOptional方法的典型用法代码示例。如果您正苦于以下问题:C# PhpStack.PeekReferenceOptional方法的具体用法?C# PhpStack.PeekReferenceOptional怎么用?C# PhpStack.PeekReferenceOptional使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHP.Core.PhpStack
的用法示例。
在下文中一共展示了PhpStack.PeekReferenceOptional方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: __construct
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);
}
示例2: __construct
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);
}
示例3: fetchAll
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);
}
示例4: query
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);
}
示例5: exec
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);
}