Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: OrbitEnum - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net

search for in the

OrbitObject" width="11" height="7"/> <Satellite
Last updated: Wed, 01 Nov 2006
view this page in

OrbitEnum

(no version information, might be only in CVS)

OrbitEnum -- CORBA enums を使用する

説明

new OrbitEnum ( string id )

警告

この関数は、 実験的 なものです。この関数の動作・ 名前・その他ドキュメントに書かれている事項は、予告なく、将来的な PHP のリリースにおいて変更される可能性があります。 この関数は自己責任で使用してください。

このクラスは、パラメータ id で指定した連番を 表します。

パラメータ

id

連番の名前(例: "MyEnum")あるいは 完全なレポジトリID(例:"IDL:MyEnum:1.0")のどちらかです。

例 1. IDL ファイルの例

enum MyEnum {
    a,b,c,d,e
};

例 2. MyEnum にアクセスするための PHP コード

<?php
$enum
= new OrbitEnum ("MyEnum");

echo
$enum->a;    /* 0 を出力 */
echo $enum->c;    /* 2 を出力 */
echo $enum->e;    /* 4 を出力 */
?>



add a note add a note User Contributed Notes
OrbitEnum
There are no user contributed notes for this page.

OrbitObject" width="11" height="7"/> <Satellite
Last updated: Wed, 01 Nov 2006
 
 
show source | credits | sitemap | contact | advertising | mirror sites