當前位置: 首頁>>代碼示例>>C#>>正文


C# Core.PhpStack類代碼示例

本文整理匯總了C#中PHP.Core.PhpStack的典型用法代碼示例。如果您正苦於以下問題:C# PhpStack類的具體用法?C# PhpStack怎麽用?C# PhpStack使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PhpStack類屬於PHP.Core命名空間,在下文中一共展示了PhpStack類的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);
 }
開發者ID:dw4dev,項目名稱:Phalanger,代碼行數:7,代碼來源:PDOStatement.PHP.cs

示例2: __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);
		}
開發者ID:jdluzen,項目名稱:Phalanger,代碼行數:8,代碼來源:DomXPath.dynamic.cs

示例3: 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);
		}
開發者ID:jdluzen,項目名稱:Phalanger,代碼行數:8,代碼來源:DomCollections.dynamic.cs

示例4: 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);
 }
開發者ID:dw4dev,項目名稱:Phalanger,代碼行數:8,代碼來源:PDOStatement.cs

示例5: __invoke

        public static object __invoke(object/*!*/instance, PhpStack/*!*/stack)
        {
            var closure = (Closure)instance;

            stack.ExpandFrame([email protected]);

            return closure.lambda(instance, stack);
        }
開發者ID:hansdude,項目名稱:Phalanger,代碼行數:8,代碼來源:Closure.cs

示例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);
 }
開發者ID:jafin,項目名稱:Phalanger,代碼行數:9,代碼來源:PDO.cs

示例7: 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);
		}
開發者ID:jdluzen,項目名稱:Phalanger,代碼行數:10,代碼來源:DomXPath.dynamic.cs

示例8: __call

		public static object __call(object instance, PhpStack stack)
		{
			stack.CalleeName = "__call";
			
			object arg1 = stack.PeekValue(1);
			
			object arg2 = stack.PeekValue(2);
			stack.RemoveFrame();
			return ((SoapClient)instance).__call(stack.Context, arg1, arg2);
		}
開發者ID:proff,項目名稱:Phalanger,代碼行數:10,代碼來源:SoapClient.dynamic.cs

示例9: 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);
        }
開發者ID:dw4dev,項目名稱:Phalanger,代碼行數:10,代碼來源:Class.dynamic.cs

示例10: __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);
        }
開發者ID:dw4dev,項目名稱:Phalanger,代碼行數:11,代碼來源:SQLiteDatabase.cs

示例11: __construct

 public static new object __construct(object instance, PhpStack stack)
 {
     var path = stack.PeekValue(1);
     stack.RemoveFrame();
     return ((DirectoryIterator)instance).__construct(stack.Context, path);
 }
開發者ID:MpApQ,項目名稱:Phalanger,代碼行數:6,代碼來源:FileSystem.cs

示例12: isFile

 public static object isFile(object instance, PhpStack stack)
 {
     stack.RemoveFrame();
     return ((SplFileInfo)instance).isFile(stack.Context);
 }
開發者ID:MpApQ,項目名稱:Phalanger,代碼行數:5,代碼來源:FileSystem.cs

示例13: 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);
        }
開發者ID:tiaohai,項目名稱:Phalanger,代碼行數:9,代碼來源:Reflection.cs

示例14: hasChildren

 public static object hasChildren(object instance, PhpStack stack)
 {
     var allowLinks = stack.PeekValueOptional(1);
     stack.RemoveFrame();
     return ((RecursiveDirectoryIterator)instance).hasChildren(stack.Context/*, allowLinks*/);
 }
開發者ID:MpApQ,項目名稱:Phalanger,代碼行數:6,代碼來源:FileSystem.cs

示例15: current

 public new static object current(object instance, PhpStack stack)
 {
     stack.RemoveFrame();
     return ((FilesystemIterator)instance).current(stack.Context);
 }
開發者ID:MpApQ,項目名稱:Phalanger,代碼行數:5,代碼來源:FileSystem.cs


注:本文中的PHP.Core.PhpStack類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。