OrbitObject

(no version information, might be only in CVS)

OrbitObject -- Access CORBA objects

說明

new OrbitObject ( string ior )

警示

本函數是實驗性的。本函數的行為,內含函數名稱以及其它任何關於本函數的文件可能會在沒有知會的情況下隨 PHP 以後的發佈而改變。使用本函數風險自擔。

This class provides access to a CORBA object.

參數

ior

Should be a string containing the IOR (Interoperable Object Reference) that identifies the remote object.

範例

例子 1. Sample IDL file

interface MyInterface {
    void SetInfo (string info);
    string GetInfo();

    attribute int value;
}

例子 2. PHP code for accessing MyInterface

<?php
$obj 
= new OrbitObject ($ior);

$obj->SetInfo ("A 2GooD object");

echo 
$obj->GetInfo();

$obj->value 42;

echo 
$obj->value;
?>