reference/runkit7/functions/runkit7-function-copy.xml
917c06eac884740ef9285f59387a3f5259d66722
...
...
@@ -0,0 +1,112 @@
1
+
<?xml version="1.0" encoding="utf-8"?>
2
+
<!-- $Revision$ -->
3
+

4
+
<refentry xml:id="function.runkit7-function-copy" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
+
<refnamediv>
6
+
<refname>runkit7_function_copy</refname>
7
+
<refpurpose>
8
+
Copy a function to a new function name
9
+
</refpurpose>
10
+
</refnamediv>
11
+

12
+
<refsect1 role="description">
13
+
&reftitle.description;
14
+
<methodsynopsis>
15
+
<type>bool</type><methodname>runkit7_function_copy</methodname>
16
+
<methodparam><type>string</type><parameter>source_name</parameter></methodparam>
17
+
<methodparam><type>string</type><parameter>target_name</parameter></methodparam>
18
+
</methodsynopsis>
19
+
</refsect1>
20
+

21
+
<refsect1 role="parameters">
22
+
&reftitle.parameters;
23
+
<variablelist>
24
+
<varlistentry>
25
+
<term><parameter>source_name</parameter></term>
26
+
<listitem>
27
+
<para>
28
+
Name of the existing function
29
+
</para>
30
+
</listitem>
31
+
</varlistentry>
32
+
<varlistentry>
33
+
<term><parameter>target_name</parameter></term>
34
+
<listitem>
35
+
<para>
36
+
Name of the new function to copy the definition to
37
+
</para>
38
+
</listitem>
39
+
</varlistentry>
40
+
</variablelist>
41
+
</refsect1>
42
+

43
+
<refsect1 role="returnvalues">
44
+
&reftitle.returnvalues;
45
+
<para>
46
+
&return.success;
47
+
</para>
48
+
</refsect1>
49
+

50
+

51
+
<refsect1 role="examples">
52
+
&reftitle.examples;
53
+
<para>
54
+
<example>
55
+
<title>A <function>runkit7_function_copy</function> example</title>
56
+
<programlisting role="php">
57
+
<![CDATA[
58
+
<?php
59
+
function original() {
60
+
echo "In a function\n";
61
+
}
62
+
runkit7_function_copy('original','duplicate');
63
+
original();
64
+
duplicate();
65
+
?>
66
+
]]>
67
+
</programlisting>
68
+
&example.outputs;
69
+
<screen>
70
+
<![CDATA[
71
+
In a function
72
+
In a function
73
+
]]>
74
+
</screen>
75
+
</example>
76
+
</para>
77
+
</refsect1>
78
+

79
+
<refsect1 role="seealso">
80
+
&reftitle.seealso;
81
+
<para>
82
+
<simplelist>
83
+
<member><function>runkit7_function_add</function></member>
84
+
<member><function>runkit7_function_redefine</function></member>
85
+
<member><function>runkit7_function_rename</function></member>
86
+
<member><function>runkit7_function_remove</function></member>
87
+
</simplelist>
88
+
</para>
89
+
</refsect1>
90
+

91
+
</refentry>
92
+

93
+
<!-- Keep this comment at the end of the file
94
+
Local variables:
95
+
mode: sgml
96
+
sgml-omittag:t
97
+
sgml-shorttag:t
98
+
sgml-minimize-attributes:nil
99
+
sgml-always-quote-attributes:t
100
+
sgml-indent-step:1
101
+
sgml-indent-data:t
102
+
indent-tabs-mode:nil
103
+
sgml-parent-document:nil
104
+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
105
+
sgml-exposed-tags:nil
106
+
sgml-local-catalogs:nil
107
+
sgml-local-ecat-files:nil
108
+
End:
109
+
vim600: syn=xml fen fdm=syntax fdl=2 si
110
+
vim: et tw=78 syn=sgml
111
+
vi: ts=1 sw=1
112
+
-->
0
113