★ wanayoo — archive 1999 http://fr.php.net/manual/class.orbitenum.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to Satellite
Quick Reference
English version of this pageGerman version of this pageJapanese version of this page
Italian version of this pageFrench version of this pageHungarian version of this page
Spanish version of this pageDutch version of this pageBrazilian Portuguese version of this page
Korean version of this pageCzech version of this page
Satellite
* OrbitObject
* OrbitEnum
* OrbitStruct
* satellite_caught_exception
* satellite_exception_id
* satellite_exception_value

  Thanks to:
 Chek.com
 easyDNS
 VA Linux Systems

  Related sites:
Apache
MySQL
PostgreSQL
Zend Tech.

  Community:
LinuxFund.org
OSDN
Manual: OrbitEnum
View the source code for this pageSearch the site



Previous page
 OrbitObject
 Updated
Mon, 08 Jan 2001
OrbitStruct 
Next page


OrbitEnum

(unknown)

OrbitEnum -- Use CORBA enums

Description

new OrbitEnum (string id)

This class represents the enumeration identified with the id parameter. The id can be either the name of the enumeration (e.g "MyEnum"), or the full repository id (e.g. "IDL:MyEnum:1.0").

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 */
?>
      


 About Notes


Previous page
 OrbitObject
 Updated
Mon, 08 Jan 2001
OrbitStruct 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
France
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.