mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Avoid _ in filenames
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@322126 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
5e240161c1
commit
b71ce31dcc
6 changed files with 10 additions and 110 deletions
|
@ -40,7 +40,7 @@
|
|||
</fieldsynopsis>
|
||||
|
||||
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
|
||||
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.lua')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
|
||||
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.lua')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis)" />
|
||||
</classsynopsis>
|
||||
<!-- }}} -->
|
||||
|
||||
|
|
|
@ -1,108 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
|
||||
<refentry xml:id="lua.__call" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<refnamediv>
|
||||
<refname>Lua::__call</refname>
|
||||
<refpurpose>Magic method for Lua to call Lua functions</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<methodsynopsis>
|
||||
<modifier>public</modifier> <type>void</type><methodname>Lua::__call</methodname>
|
||||
<methodparam><type>string</type><parameter>lua_func</parameter></methodparam>
|
||||
<methodparam><type>array</type><parameter>args</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
&warn.undocumented.func;
|
||||
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>lua_func</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Function name in lua
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>args</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Arguments passed to the Lua function
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<example>
|
||||
<title><function>Lua::call</function>example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$lua = new Lua();
|
||||
$lua->eval(<<<CODE
|
||||
function dummy(foo, bar)
|
||||
print(foo, ",", bar)
|
||||
end
|
||||
CODE
|
||||
);
|
||||
$lua->dummy("Lua", "geiliable");
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
&example.outputs.similar;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Lua,geiliable
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<simplelist>
|
||||
<member><function>Lua::call</function></member>
|
||||
</simplelist>
|
||||
</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:"~/.phpdoc/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
|
||||
-->
|
|
@ -4,6 +4,7 @@
|
|||
<refentry xml:id="lua.call" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<refnamediv>
|
||||
<refname>Lua::call</refname>
|
||||
<refname>Lua::__call</refname>
|
||||
<refpurpose>Call Lua functions</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
|
@ -14,6 +15,11 @@
|
|||
<methodparam><type>mixed</type><parameter>lua_func</parameter></methodparam>
|
||||
<methodparam><type>array</type><parameter>args</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<methodsynopsis>
|
||||
<modifier>public</modifier> <type>void</type><methodname>Lua::__call</methodname>
|
||||
<methodparam><type>string</type><parameter>lua_func</parameter></methodparam>
|
||||
<methodparam><type>array</type><parameter>args</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
@ -66,6 +72,7 @@ $lua->eval(<<<CODE
|
|||
CODE
|
||||
);
|
||||
$lua->call("dummy", array("Lua", "geiliable\n"));
|
||||
$lua->dummy("Lua", "geiliable"); // __call()
|
||||
var_dump($lua->call(array("table", "concat"), array(array(1=>1, 2=>2, 3=>3), "-")));
|
||||
?>
|
||||
]]>
|
||||
|
@ -74,6 +81,7 @@ var_dump($lua->call(array("table", "concat"), array(array(1=>1, 2=>2, 3=>3), "-"
|
|||
<screen>
|
||||
<![CDATA[
|
||||
Lua,geiliable
|
||||
Lua,geiliable
|
||||
string(5) "1-2-3"
|
||||
]]>
|
||||
</screen>
|
||||
|
@ -83,7 +91,7 @@ string(5) "1-2-3"
|
|||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<simplelist>
|
||||
<member><function>Lua::__call</function></member>
|
||||
<member><link linkend="language.oop5.overloading.methods"><function>__call</function></link></member>
|
||||
</simplelist>
|
||||
</refsect1>
|
||||
|
||||
|
|
Loading…
Reference in a new issue