mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Define runkit_import()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@185666 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
ce9c99601a
commit
f3e1ba99bb
2 changed files with 102 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='iso-8859-1'?>
|
||||
<!-- $Revision: 1.2 $ -->
|
||||
<!-- $Revision: 1.3 $ -->
|
||||
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. -->
|
||||
<section id="runkit.constants">
|
||||
&reftitle.constants;
|
||||
|
@ -12,7 +12,9 @@
|
|||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>runkit_import</function> flag
|
||||
<function>runkit_import</function> flag indicating
|
||||
that normal functions should be imported from the
|
||||
specified file.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -23,7 +25,9 @@
|
|||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>runkit_import</function> flag
|
||||
<function>runkit_import</function> flag indicating
|
||||
that class methods should be imported from the
|
||||
specified file.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -34,7 +38,10 @@
|
|||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>runkit_import</function> flag
|
||||
<function>runkit_import</function> flag indicating
|
||||
that class constants should be imported from the
|
||||
specified file. Note that this flag is only meaningful
|
||||
in PHP versions 5.1.0 and above.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -45,7 +52,9 @@
|
|||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>runkit_import</function> flag
|
||||
<function>runkit_import</function> flag indicating
|
||||
that class standard properties should be imported
|
||||
from the specified file.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -56,18 +65,24 @@
|
|||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>runkit_import</function> flag
|
||||
<function>runkit_import</function> flag representing
|
||||
a bitwise OR of the <constant>RUNKIT_IMPORT_CLASS_*</constant>
|
||||
constants.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<constant>RUNKIT_IMPORT_OVERRIDE</constant>
|
||||
<constant>RUNKIT_IMPORT_OVERRIDE</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
<function>runkit_import</function> flag
|
||||
<function>runkit_import</function> flag indicating that
|
||||
if any of the imported functions, methods, constants,
|
||||
or properties already exist, they should be replaced with
|
||||
the new definitions. If this flag is not set, then any
|
||||
imported definitions which already exist will be discarded.
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
79
reference/runkit/functions/runkit-import.xml
Normal file
79
reference/runkit/functions/runkit-import.xml
Normal file
|
@ -0,0 +1,79 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc. -->
|
||||
<refentry id="function.runkit-import">
|
||||
<refnamediv>
|
||||
<refname>runkit_import</refname>
|
||||
<refpurpose>
|
||||
Process a PHP file importing function and class definitions, overwriting where appropriate
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>runkit_import</methodname>
|
||||
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
|
||||
<methodparam choice="opt"><type>int</type><parameter>flags</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Similar to <function>include</function> however any code residing outside
|
||||
of a function or class is simply ignored.
|
||||
Additionally, depending on the value of <parameter>flags</parameter>,
|
||||
any functions or classes which already exist in the currently running environment
|
||||
will be automatically overwritten by their new definitions.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>filename</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Filename to import function and class definitions from
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>flags</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Bitwise OR of the <constant>RUNKIT_IMPORT_*</constant> family of constants.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</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
|
||||
-->
|
Loading…
Reference in a new issue