本文整理汇总了C#中PHP.Core.PhpStack.PeekValue方法的典型用法代码示例。如果您正苦于以下问题:C# PhpStack.PeekValue方法的具体用法?C# PhpStack.PeekValue怎么用?C# PhpStack.PeekValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHP.Core.PhpStack
的用法示例。
在下文中一共展示了PhpStack.PeekValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: registerNamespace
public static object registerNamespace(object instance, PhpStack stack)
{
stack.CalleeName = "registerNamespace";
object arg1 = stack.PeekValue(1);
object arg2 = stack.PeekValue(2);
stack.RemoveFrame();
return ((DOMXPath)instance).registerNamespace(stack.Context, arg1, arg2);
}
示例2: __soapCall
public static object __soapCall(object instance, PhpStack stack)
{
stack.CalleeName = "__soapCall";
object arg1 = stack.PeekValue(1);
object arg2 = stack.PeekValue(2);
stack.RemoveFrame();
return ((SoapClient)instance).__soapCall(stack.Context, arg1, arg2);
}
示例3: 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);
}
示例4: __construct
public static object __construct(object instance, PhpStack stack)
{
stack.CalleeName = "__construct";
object arg1 = stack.PeekValue(1);
stack.RemoveFrame();
return ((DOMXPath)instance).__construct(stack.Context, arg1);
}
示例5: item
public static object item(object instance, PhpStack stack)
{
stack.CalleeName = "item";
object arg1 = stack.PeekValue(1);
stack.RemoveFrame();
return ((DOMNodeList)instance).item(stack.Context, arg1);
}
示例6: __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);
}
示例7: Foo
public static object Foo(object instance, PhpStack stack)
{
// setup the stack, get arguments from the stack
stack.CalleeName = "Foo";
object arg1 = stack.PeekValue(1);
stack.RemoveFrame();
// call the actual Foo with arguments obtained from the stack
return ((MyPhpClass)instance).Foo(stack.Context, arg1);
}
示例8: __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);
}
示例9: getModifierNames
public static object getModifierNames(object instance, PhpStack stack)
{
stack.CalleeName = "getModifierNames";
object arg1 = stack.PeekValue(1);
stack.RemoveFrame();
int typed1 = Core.Convert.ObjectToInteger(arg1);
return getModifierNames(typed1);
}
示例10: __construct
public static object __construct(object instance, PhpStack stack)
{
var filename = stack.PeekValue(1);
stack.RemoveFrame();
return ((SplFileInfo)instance).__construct(stack.Context, filename);
}
示例11: 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);
}
示例12: 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);
}
示例13: setTime
[EditorBrowsable(EditorBrowsableState.Never)]
public static object setTime(object instance, PhpStack stack)
{
var arg1 = stack.PeekValue(1);
var arg2 = stack.PeekValue(2);
var arg3 = stack.PeekValue(3);
stack.RemoveFrame();
return ((__PHP__DateTime)instance).setTime(stack.Context, arg1, arg2, arg3);
示例14: uksort
public static object uksort(object instance, PhpStack stack)
{
var cmp_function = stack.PeekValue(1);
stack.RemoveFrame();
return ((ArrayIterator)instance).uksort(stack.Context, cmp_function);
}
示例15: modify
public static object modify(object instance, PhpStack stack)
{
var modify = stack.PeekValue(1);
stack.RemoveFrame();
return ((__PHP__DateTime)instance).modify(stack.Context, modify);
}