Forum und email
OrbitEnum

OrbitEnum

(no version information, might be only in CVS)

OrbitEnum -- Use CORBA enums

Opis

new OrbitEnum ( string id )

Ostrzeżenie

Ta funkcja jest w stadium EKSPERYMENTALNYM. Oznacza to, że zachowanie funkcji, jej nazwa, w zasadzie wszystko udokumentowane tutaj może zostać zmienione w przyszłych wersjach PHP bez wcześniejszego uprzedzenia. Używaj tej funkcji na własne ryzyko.

This class represents the enumeration identified with the id parameter.

Parametry

id

Can be either the name of the enumeration (e.g "MyEnum"), or the full repository id (e.g. "IDL:MyEnum:1.0").

Przykłady

Przykład 1. Sample IDL file

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

Przykład 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 */
?>