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;
?>