本文整理匯總了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);
}