OrbitEnum
(no version information, might be only in CVS)
OrbitEnum -- Use CORBA enums
说明
new
OrbitEnum ( string id )
警告 |
本函数是实验性的。本函数的行为,包括函数名称以及其它任何关于本函数的文档可能会在没有通知的情况下随
PHP 以后的发布而改变。使用本函数风险自担。 |
This class represents the enumeration identified with the
id
parameter.
参数
id
Can be either the name of the enumeration (e.g "MyEnum"), or the full
repository id (e.g. "IDL:MyEnum:1.0").
范例
例 1. Sample IDL file enum MyEnum {
a,b,c,d,e
}; |
|
例 2. PHP code for accessing MyEnum
<?php $enum = new OrbitEnum ("MyEnum");
echo $enum->a; /* write 0 */ echo $enum->c; /* write 2 */ echo $enum->e; /* write 4 */ ?>
|
|