OrbitEnum
(No version information available, might be only in CVS)
OrbitEnum — Use CORBA enums
Descripción
new OrbitEnum
( string $id
)
Warning
Esta función es EXPERIMENTAL. Esto significa que el comportamiento de esta función, el nombre de esta función y en definitiva TODO lo documentado sobre esta función, puede cambiar en una futura version de PHP SIN AVISO. La advertencia queda hecha, y utilizar esta extensión queda bajo su propia responsabilidad.
This class represents the enumeration identified with the id parameter.
Lista de parámetros
- id
-
Can be either the name of the enumeration (e.g "MyEnum"), or the full repository id (e.g. "IDL:MyEnum:1.0").
Ejemplos
Example#1 Sample IDL file
enum MyEnum { a,b,c,d,e };
Example#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 */
?>