PHP ��U
前一頁 |  | 下一頁

# OrbitStruct

(no version information, might be only in CVS)

OrbitStruct -- Use CORBA structs

## Description

new OrbitStruct ( string id )

警告
�o�Ө�ƬO����ʽ��C�o�Ө�ƪ�欰�B�W�١B�M����ƪ����L���b��PHP�o�椤�i��|�b�q�p�U���ܡC �ϥΦ��ݦۦ�Ӿ᭷�I�C

This class represents the structure identified with the id parameter.

## Parameters

id

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

## �d��

範例 1. Sample IDL file

    struct MyStruct {
        short shortvalue;
        string stringvalue;
    };

    interface SomeInterface {
      void SetValues (MyStruct values);
      MyStruct GetValues();
    }

範例 2. PHP code for accessing MyStruct

`<?php $obj = new OrbitObject ($ior); $initial_values = new OrbitStruct ("IDL:MyStruct:1.0"); $initial_values->shortvalue = 42; $initial_values->stringvalue = "HGTTG"; $obj->SetValues ($initial_values); $values = $obj->GetValues(); echo $values->shortvalue; echo $values->stringvalue; ?>`

前一頁 | 內容 | 下一頁
OrbitObject | 上一層 | satellite_caught_exception