svn: /phpdoc/de/trunk/reference/sqlite3/sqlite3/ createfunction.xml
[email protected] (Bastian Feder)
| Newsgroups | php.doc.de |
|---|---|
| Message-ID | <[email protected]> |
lapistano Sat, 09 Jan 2010 16:22:59 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=293325
Log:
Added translation for createfunction()
Changed paths:
A phpdoc/de/trunk/reference/sqlite3/sqlite3/createfunction.xml
Added: phpdoc/de/trunk/reference/sqlite3/sqlite3/createfunction.xml
===================================================================
--- phpdoc/de/trunk/reference/sqlite3/sqlite3/createfunction.xml (rev 0)
+++ phpdoc/de/trunk/reference/sqlite3/sqlite3/createfunction.xml 2010-01-09 16:22:59 UTC (rev 293325)
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 288721 $ -->
+<!-- EN-Revision: 288721 Maintainer: lapistano Status: ready -->
+
+<refentry xml:id="sqlite3.createfunction" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+ <refname>SQLite3::createFunction</refname>
+ <refpurpose>Registriert eine PHP-Funktion, die als SQL-Skalar-Funktion verwendet wird</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <modifier>public</modifier> <type>bool</type><methodname>SQLite3::createFunction</methodname>
+ <methodparam><type>string</type><parameter>name</parameter></methodparam>
+ <methodparam><type>mixed</type><parameter>callback</parameter></methodparam>
+ <methodparam choice="opt"><type>int</type><parameter>argument_count</parameter><initializer>-1</initializer></methodparam>
+ </methodsynopsis>
+ <para>
+ Registriert eine PHP- oder nutzerdefinierte Funktion, die als SQL-Skalar-Funktion
+ innerhalb eine SQL-Anfrage genutzt werden kann.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>name</parameter></term>
+ <listitem>
+ <para>
+ Name der zu erstellenden oder neu zu definierenden SQL-Funktion.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>callback</parameter></term>
+ <listitem>
+ <para>
+ Name einer PHP- oder nutzerdefinierten Funktion, die als Callback-Funktion aggieren
+ soll und das Verhalten der SQL-Funktion definiert.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>argument_count</parameter></term>
+ <listitem>
+ <para>
+ Anzahl der Argumente der SQL-Funktion. Wenn dieser Parameter negativ ist,
+ kann die SQL-Funktion eine unbestimmte Anzahl von Argumenten verarbeiten.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Gibt &true; zurück, wenn die Funktion erfolgreich erstellt wurde; anderenfalls &false;
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>SQLite3::createFunction</function> example</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+function my_udf_md5($string) {
+ return md5($string);
+}
+
+$db = new SQLite3('mysqlitedb.db');
+$db->createFunction('my_udf_md5', 'my_udf_md5');
+
+var_dump($db->querySingle('SELECT my_udf_md5("test")'));
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+string(32) "098f6bcd4621d373cade4e832627b4f6"
+]]>
+ </screen>
+ </example>
+ </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:"~/.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
+-->
Property changes on: phpdoc/de/trunk/reference/sqlite3/sqlite3/createfunction.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:keywords
+ Id
Added: svn:eol-style
+ LF