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

4
+
<refentry xml:id="function.runkit7-import" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
+
<refnamediv>
6
+
<refname>runkit7_import</refname>
7
+
<refpurpose>
8
+
Process a PHP file importing function and class definitions, overwriting where appropriate
9
+
</refpurpose>
10
+
</refnamediv>
11
+

12
+
<refsynopsisdiv>
13
+
<warning xmlns="http://docbook.org/ns/docbook">
14
+
<simpara>This feature has been <emphasis>removed</emphasis> in PECL runkit7 4.0.0.</simpara>
15
+
</warning>
16
+
</refsynopsisdiv>
17
+

18
+
<refsect1 role="description">
19
+
&reftitle.description;
20
+
<methodsynopsis>
21
+
<type>bool</type><methodname>runkit7_import</methodname>
22
+
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
23
+
<methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam>
24
+
</methodsynopsis>
25
+
<para>
26
+
Similar to <function>include</function>. However, any code residing outside
27
+
of a function or class is simply ignored.
28
+
Additionally, depending on the value of <parameter>flags</parameter>,
29
+
any functions or classes which already exist in the currently running environment
30
+
may be automatically overwritten by their new definitions.
31
+
</para>
32
+
</refsect1>
33
+

34
+
<refsect1 role="parameters">
35
+
&reftitle.parameters;
36
+
<variablelist>
37
+
<varlistentry>
38
+
<term><parameter>filename</parameter></term>
39
+
<listitem>
40
+
<para>
41
+
Filename to import function and class definitions from
42
+
</para>
43
+
</listitem>
44
+
</varlistentry>
45
+
<varlistentry>
46
+
<term><parameter>flags</parameter></term>
47
+
<listitem>
48
+
<para>
49
+
Bitwise OR of the <link linkend="runkit7.constants"><literal>RUNKIT7_IMPORT_*</literal>
50
+
family of constants</link>.
51
+
</para>
52
+
</listitem>
53
+
</varlistentry>
54
+
</variablelist>
55
+
</refsect1>
56
+

57
+
<refsect1 role="returnvalues">
58
+
&reftitle.returnvalues;
59
+
<para>
60
+
&return.success;
61
+
</para>
62
+
</refsect1>
63
+

64
+

65
+
</refentry>
66
+

67
+
<!-- Keep this comment at the end of the file
68
+
Local variables:
69
+
mode: sgml
70
+
sgml-omittag:t
71
+
sgml-shorttag:t
72
+
sgml-minimize-attributes:nil
73
+
sgml-always-quote-attributes:t
74
+
sgml-indent-step:1
75
+
sgml-indent-data:t
76
+
indent-tabs-mode:nil
77
+
sgml-parent-document:nil
78
+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
79
+
sgml-exposed-tags:nil
80
+
sgml-local-catalogs:nil
81
+
sgml-local-ecat-files:nil
82
+
End:
83
+
vim600: syn=xml fen fdm=syntax fdl=2 si
84
+
vim: et tw=78 syn=sgml
85
+
vi: ts=1 sw=1
86
+
-->
0
87