本文整理汇总了C#中PHP.Core.PhpStack.PeekValueOptional方法的典型用法代码示例。如果您正苦于以下问题:C# PhpStack.PeekValueOptional方法的具体用法?C# PhpStack.PeekValueOptional怎么用?C# PhpStack.PeekValueOptional使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHP.Core.PhpStack
的用法示例。
在下文中一共展示了PhpStack.PeekValueOptional方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: setFetchMode
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);
}
示例2: fetch
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);
}
示例3: __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);
}
示例4: hasChildren
public static object hasChildren(object instance, PhpStack stack)
{
var allowLinks = stack.PeekValueOptional(1);
stack.RemoveFrame();
return ((RecursiveDirectoryIterator)instance).hasChildren(stack.Context/*, allowLinks*/);
}
示例5: __construct
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);
}
示例6: prepare
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);
}
示例7: quote
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);
}
示例8: __construct
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);
}
示例9: getSubIterator
public static object getSubIterator(object instance, PhpStack stack)
{
var level = stack.PeekValueOptional(1);
stack.RemoveFrame();
return ((RecursiveIteratorIterator)instance).getSubIterator(stack.Context, level);
}
示例10: fetchColumn
public static object fetchColumn(object instance, PhpStack stack)
{
object column_number = stack.PeekValueOptional(1);
stack.RemoveFrame();
return ((PDOStatement)instance).fetchColumn(stack.Context, column_number);
}
示例11: execute
public static object execute(object instance, PhpStack stack)
{
object input_parameters = stack.PeekValueOptional(1);
stack.RemoveFrame();
return ((PDOStatement)instance).execute(stack.Context, input_parameters);
}
示例12: bindValue
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);
}
示例13: getClosure
public static object getClosure(object instance, PhpStack stack)
{
var @object = stack.PeekValueOptional(1);
stack.RemoveFrame();
return ((ReflectionMethod)instance).getClosure(stack.Context, @object);
}
示例14: __construct
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);
}
示例15: attach
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);
}