cvs: peardoc / manual.xml.in /en/pecl satellite.xml
| From: | David Eriksson | Date: | Fri, 08 Feb 2002 08:12:25 +0000 |
| Subject: | cvs: peardoc / manual.xml.in /en/pecl satellite.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2329@lists.php.net to get a copy of this message | ||
eriksson Fri Feb 8 03:12:25 2002 EDT
Added files:
/peardoc/en/pecl satellite.xml
Modified files:
/peardoc manual.xml.in
Log:
* Added documentation for Satellite
Index: peardoc/manual.xml.in diff -u peardoc/manual.xml.in:1.17 peardoc/manual.xml.in:1.18 --- peardoc/manual.xml.in:1.17 Sun Jan 27 09:35:48 2002 +++ peardoc/manual.xml.in Fri Feb 8 03:12:25 2002 @@ -58,6 +58,7 @@ <part id="pecl"> <title>&Pecl;</title> &pecl.imagick; + &pecl.satellite; </part> <part id="contributing"> Index: peardoc/en/pecl/satellite.xml +++ peardoc/en/pecl/satellite.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- Author: David Eriksson <eriksson@php.net> --> <reference id="packages.satellite"> <title>Satellite CORBA client extension</title> <titleabbrev>Satellite</titleabbrev> <partintro> &warn.experimental; <para> Satellite is deprecated. It is suggested that you use Universe (<ulink url="http://universe.2good.nu/">http://universe.2good.nu/</ulink>) and not Satellite. </para> <para> The Satellite extension is used for accessing CORBA objects. You will need to set the idl_directory= entry in php.ini to a path where you store all IDL files you use. </para> <para> See the Satellite README file for details about installing Satellite. </para> </partintro> <refentry id="class.orbitobject"> <refnamediv> <refname>OrbitObject</refname> <refpurpose>Access CORBA objects</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>new <function>OrbitObject</function></funcdef> <paramdef>string <parameter>ior</parameter></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> This class provides access to a CORBA object. The <parameter>ior</parameter> parameter should be a string containing the IOR (Interoperable Object Reference) that identifies the remote object. </para> <para> <example> <title>Sample IDL file</title> <programlisting role="idl"> <![CDATA[ interface MyInterface { void SetInfo (string info); string GetInfo(); attribute int value; } ]]> </programlisting> </example> </para> <para> <example> <title>PHP code for accessing MyInterface</title> <programlisting role="php"> <![CDATA[ <?php $obj = new OrbitObject ($ior); $obj->SetInfo ("A 2GooD object"); echo $obj->GetInfo(); $obj->value = 42; echo $obj->value; ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <refentry id="class.orbitenum"> <refnamediv> <refname>OrbitEnum</refname> <refpurpose>Use CORBA enums</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>new <function>OrbitEnum</function></funcdef> <paramdef>string <parameter>id</parameter></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> This class represents the enumeration identified with the <parameter>id</parameter> parameter. The <parameter>id</parameter> can be either the name of the enumeration (e.g "MyEnum"), or the full repository id (e.g. "IDL:MyEnum:1.0"). </para> <para> <example> <title>Sample IDL file</title> <programlisting role="idl"> <![CDATA[ enum MyEnum { a,b,c,d,e }; ]]> </programlisting> </example> </para> <para> <example> <title>PHP code for accessing MyEnum</title> <programlisting role="php"> <![CDATA[ <?php $enum = new OrbitEnum ("MyEnum"); echo $enum->a; /* write 0 */ echo $enum->c; /* write 2 */ echo $enum->e; /* write 4 */ ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <refentry id="class.orbitstruct"> <refnamediv> <refname>OrbitStruct</refname> <refpurpose>Use CORBA structs</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>new <function>OrbitStruct</function></funcdef> <paramdef>string <parameter>id</parameter></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> This class represents the structure identified with the <parameter>id</parameter> parameter. The <parameter>id</parameter> can be either the name of the struct (e.g "MyStruct"), or the full repository id (e.g. "IDL:MyStruct:1.0"). </para> <para> <example> <title>Sample IDL file</title> <programlisting role="idl"> <![CDATA[ struct MyStruct { short shortvalue; string stringvalue; }; interface SomeInterface { void SetValues (MyStruct values); MyStruct GetValues(); } ]]> </programlisting> </example> </para> <para> <example> <title>PHP code for accessing MyStruct</title> <programlisting role="php"> <![CDATA[ <?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; ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <refentry id="function.satellite-caught-exception"> <refnamediv> <refname>satellite_caught_exception</refname> <refpurpose> See if an exception was caught from the previous function </refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>satellite_caught_exception</function> </funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> This function returns &true; if an exception has been caught. </para> <para> <example> <title>Sample IDL file</title> <programlisting role="idl"> <![CDATA[ /* ++?????++ Out of Cheese Error. Redo From Start. */ exception OutOfCheeseError { int parameter; } interface AnotherInterface { void AskWhy() raises (OutOfCheeseError); } ]]> </programlisting> </example> </para> <para> <example> <title>PHP code for handling CORBA exceptions</title> <programlisting role="php"> <![CDATA[ <?php $obj = new OrbitObject ($ior); $obj->AskWhy(); if (satellite_caught_exception()) { if ("IDL:OutOfCheeseError:1.0" == satellite_exception_id()) { $exception = satellite_exception_value(); echo $exception->parameter; } } ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <refentry id="function.satellite-exception-id"> <refnamediv> <refname>satellite_exception_id</refname> <refpurpose>Get the repository id for the latest exception.</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>string <function>satellite_exception_id</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> Return a repository id string. (E.g. "IDL:MyException:1.0".) For example usage see <function>satellite_caught_exception</function>. </para> </refsect1> </refentry> <refentry id="function.satellite-exception-value"> <refnamediv> <refname>satellite_exception_value</refname> <refpurpose> Get the exception struct for the latest exception </refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>OrbitStruct <function>satellite_exception_value</function> </funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> Return an exception struct. For example usage see <function>satellite_caught_exception</function>. </para> </refsect1> </refentry> <refentry id='function.satellite-object-to-string'> <refnamediv> <refname>satellite_object_to_string</refname> <refpurpose> Convert an object to its string representation </refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>string <function>satellite_object_to_string</function></funcdef> <paramdef>object <parameter>obj</parameter></paramdef> </funcprototype> </funcsynopsis> <para> Convert an object to its string representation (IOR). </para> </refsect1> </refentry> <refentry id='function.satellite-load-idl'> <refnamediv> <refname>satellite_load_idl</refname> <refpurpose> Instruct the type manager to load an IDL file </refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>satellite_load_idl</function></funcdef> <paramdef>string <parameter>file</parameter></paramdef> </funcprototype> </funcsynopsis> <para> Load an IDL file into Satellite. </para> </refsect1> </refentry> <refentry id='function.satellite-get-repository-id'> <refnamediv> <refname>satellite_get_repository_id</refname> <refpurpose> NOT IMPLEMENTED </refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>int <function>satellite_get_repository_id</function></funcdef> <paramdef>object <parameter>obj</parameter></paramdef> </funcprototype> </funcsynopsis> <para> Not implemented. </para> </refsect1> </refentry> </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
Index: peardoc/manual.xml.in diff -u peardoc/manual.xml.in:1.17 peardoc/manual.xml.in:1.18 --- peardoc/manual.xml.in:1.17 Sun Jan 27 09:35:48 2002 +++ peardoc/manual.xml.in Fri Feb 8 03:12:25 2002 @@ -58,6 +58,7 @@ <part id="pecl"> <title>&Pecl;</title> &pecl.imagick; + &pecl.satellite; </part> <part id="contributing"> Index: peardoc/en/pecl/satellite.xml +++ peardoc/en/pecl/satellite.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- Author: David Eriksson <eriksson@php.net> --> <reference id="packages.satellite"> <title>Satellite CORBA client extension</title> <titleabbrev>Satellite</titleabbrev> <partintro> &warn.experimental; <para> Satellite is deprecated. It is suggested that you use Universe (<ulink url="http://universe.2good.nu/">http://universe.2good.nu/</ulink>) and not Satellite. </para> <para> The Satellite extension is used for accessing CORBA objects. You will need to set the idl_directory= entry in php.ini to a path where you store all IDL files you use. </para> <para> See the Satellite README file for details about installing Satellite. </para> </partintro> <refentry id="class.orbitobject"> <refnamediv> <refname>OrbitObject</refname> <refpurpose>Access CORBA objects</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>new <function>OrbitObject</function></funcdef> <paramdef>string <parameter>ior</parameter></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> This class provides access to a CORBA object. The <parameter>ior</parameter> parameter should be a string containing the IOR (Interoperable Object Reference) that identifies the remote object. </para> <para> <example> <title>Sample IDL file</title> <programlisting role="idl"> <![CDATA[ interface MyInterface { void SetInfo (string info); string GetInfo(); attribute int value; } ]]> </programlisting> </example> </para> <para> <example> <title>PHP code for accessing MyInterface</title> <programlisting role="php"> <![CDATA[ <?php $obj = new OrbitObject ($ior); $obj->SetInfo ("A 2GooD object"); echo $obj->GetInfo(); $obj->value = 42; echo $obj->value; ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <refentry id="class.orbitenum"> <refnamediv> <refname>OrbitEnum</refname> <refpurpose>Use CORBA enums</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>new <function>OrbitEnum</function></funcdef> <paramdef>string <parameter>id</parameter></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> This class represents the enumeration identified with the <parameter>id</parameter> parameter. The <parameter>id</parameter> can be either the name of the enumeration (e.g "MyEnum"), or the full repository id (e.g. "IDL:MyEnum:1.0"). </para> <para> <example> <title>Sample IDL file</title> <programlisting role="idl"> <![CDATA[ enum MyEnum { a,b,c,d,e }; ]]> </programlisting> </example> </para> <para> <example> <title>PHP code for accessing MyEnum</title> <programlisting role="php"> <![CDATA[ <?php $enum = new OrbitEnum ("MyEnum"); echo $enum->a; /* write 0 */ echo $enum->c; /* write 2 */ echo $enum->e; /* write 4 */ ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <refentry id="class.orbitstruct"> <refnamediv> <refname>OrbitStruct</refname> <refpurpose>Use CORBA structs</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>new <function>OrbitStruct</function></funcdef> <paramdef>string <parameter>id</parameter></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> This class represents the structure identified with the <parameter>id</parameter> parameter. The <parameter>id</parameter> can be either the name of the struct (e.g "MyStruct"), or the full repository id (e.g. "IDL:MyStruct:1.0"). </para> <para> <example> <title>Sample IDL file</title> <programlisting role="idl"> <![CDATA[ struct MyStruct { short shortvalue; string stringvalue; }; interface SomeInterface { void SetValues (MyStruct values); MyStruct GetValues(); } ]]> </programlisting> </example> </para> <para> <example> <title>PHP code for accessing MyStruct</title> <programlisting role="php"> <![CDATA[ <?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; ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <refentry id="function.satellite-caught-exception"> <refnamediv> <refname>satellite_caught_exception</refname> <refpurpose> See if an exception was caught from the previous function </refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>satellite_caught_exception</function> </funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> This function returns &true; if an exception has been caught. </para> <para> <example> <title>Sample IDL file</title> <programlisting role="idl"> <![CDATA[ /* ++?????++ Out of Cheese Error. Redo From Start. */ exception OutOfCheeseError { int parameter; } interface AnotherInterface { void AskWhy() raises (OutOfCheeseError); } ]]> </programlisting> </example> </para> <para> <example> <title>PHP code for handling CORBA exceptions</title> <programlisting role="php"> <![CDATA[ <?php $obj = new OrbitObject ($ior); $obj->AskWhy(); if (satellite_caught_exception()) { if ("IDL:OutOfCheeseError:1.0" == satellite_exception_id()) { $exception = satellite_exception_value(); echo $exception->parameter; } } ?> ]]> </programlisting> </example> </para> </refsect1> </refentry> <refentry id="function.satellite-exception-id"> <refnamediv> <refname>satellite_exception_id</refname> <refpurpose>Get the repository id for the latest exception.</refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>string <function>satellite_exception_id</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> Return a repository id string. (E.g. "IDL:MyException:1.0".) For example usage see <function>satellite_caught_exception</function>. </para> </refsect1> </refentry> <refentry id="function.satellite-exception-value"> <refnamediv> <refname>satellite_exception_value</refname> <refpurpose> Get the exception struct for the latest exception </refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>OrbitStruct <function>satellite_exception_value</function> </funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> &warn.experimental.func; <para> Return an exception struct. For example usage see <function>satellite_caught_exception</function>. </para> </refsect1> </refentry> <refentry id='function.satellite-object-to-string'> <refnamediv> <refname>satellite_object_to_string</refname> <refpurpose> Convert an object to its string representation </refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>string <function>satellite_object_to_string</function></funcdef> <paramdef>object <parameter>obj</parameter></paramdef> </funcprototype> </funcsynopsis> <para> Convert an object to its string representation (IOR). </para> </refsect1> </refentry> <refentry id='function.satellite-load-idl'> <refnamediv> <refname>satellite_load_idl</refname> <refpurpose> Instruct the type manager to load an IDL file </refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>bool <function>satellite_load_idl</function></funcdef> <paramdef>string <parameter>file</parameter></paramdef> </funcprototype> </funcsynopsis> <para> Load an IDL file into Satellite. </para> </refsect1> </refentry> <refentry id='function.satellite-get-repository-id'> <refnamediv> <refname>satellite_get_repository_id</refname> <refpurpose> NOT IMPLEMENTED </refpurpose> </refnamediv> <refsect1> <title>Description</title> <funcsynopsis> <funcprototype> <funcdef>int <function>satellite_get_repository_id</function></funcdef> <paramdef>object <parameter>obj</parameter></paramdef> </funcprototype> </funcsynopsis> <para> Not implemented. </para> </refsect1> </refentry> </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->