2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2007-12-13 17:49:45 +00:00
|
|
|
<!-- $Revision: 1.5 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<!-- splitted from ./en/functions/com.xml, last change in rev 1.7 -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xml:id="function.com-set" xmlns="http://docbook.org/ns/docbook">
|
2002-04-15 00:12:54 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>com_set</refname>
|
|
|
|
<refpurpose>
|
|
|
|
Assigns a value to a COM component's property
|
|
|
|
</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<methodsynopsis>
|
|
|
|
<type>void</type><methodname>com_set</methodname>
|
|
|
|
<methodparam><type>resource</type><parameter>com_object</parameter></methodparam>
|
|
|
|
<methodparam><type>string</type><parameter>property</parameter></methodparam>
|
|
|
|
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
Sets the value of the <parameter>property</parameter> of the COM
|
|
|
|
component referenced by <parameter>com_object</parameter>.
|
|
|
|
Returns the newly set value if succeeded, &false; on error.
|
|
|
|
</para>
|
2004-05-03 14:55:02 +00:00
|
|
|
|
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title>Don't use com_set(), use OO syntax instead</title>
|
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
|
|
|
<?php
|
|
|
|
// do this
|
|
|
|
$obj->property = $value;
|
|
|
|
// instead of this:
|
|
|
|
com_set($obj, 'property', $value);
|
|
|
|
?>
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2007-12-13 17:49:45 +00:00
|
|
|
&com.use-oo-instead;
|
2002-04-15 00:12:54 +00:00
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<!-- 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
|
|
|
|
-->
|