cvs: phpdoc-hu /reference/fileinfo configure.xml /reference/fileinfo/functions finfo-buffer.xml finfo-open.xml

[email protected] ("Lajos Cseppent?")
Newsgroups php.doc.hu
Message-ID <cvschappy1187364562@cvsserver>
chappy		Fri Aug 17 15:29:22 2007 UTC

  Modified files:              
    /phpdoc-hu/reference/fileinfo	configure.xml 
    /phpdoc-hu/reference/fileinfo/functions	finfo-buffer.xml 
                                           	finfo-open.xml 
  Log:
  sync
  
http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/fileinfo/configure.xml?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc-hu/reference/fileinfo/configure.xml
diff -u phpdoc-hu/reference/fileinfo/configure.xml:1.3 phpdoc-hu/reference/fileinfo/configure.xml:1.4
--- phpdoc-hu/reference/fileinfo/configure.xml:1.3	Sat Jun 23 13:37:30 2007
+++ phpdoc-hu/reference/fileinfo/configure.xml	Fri Aug 17 15:29:22 2007
@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.2 Maintainer: chappy Status: ready --> 
+<!-- EN-Revision: 1.4 Maintainer: chappy Status: ready --> 
 <!-- Reviewed: no -->
 <section xml:id="fileinfo.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  &reftitle.install;
  <para>
   &pecl.info;
-  <link xlink:href="&url.pecl;fileinfo">&url.pecl;fileinfo</link>
+  <link xlink:href="&url.pecl.package;fileinfo">&url.pecl.package;fileinfo</link>
  </para>
 </section>
 
http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/fileinfo/functions/finfo-buffer.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc-hu/reference/fileinfo/functions/finfo-buffer.xml
diff -u phpdoc-hu/reference/fileinfo/functions/finfo-buffer.xml:1.2 phpdoc-hu/reference/fileinfo/functions/finfo-buffer.xml:1.3
--- phpdoc-hu/reference/fileinfo/functions/finfo-buffer.xml:1.2	Sat Jun 23 13:37:30 2007
+++ phpdoc-hu/reference/fileinfo/functions/finfo-buffer.xml	Fri Aug 17 15:29:22 2007
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.2 Maintainer: chappy Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: chappy Status: ready -->
 <!-- Reviewed: no -->
 <!-- Generated by xml_proto.php v2.3. Found in /scripts directory of phpdoc. -->
 <refentry xml:id="function.finfo-buffer" xmlns="http://docbook.org/ns/docbook">
@@ -14,6 +14,7 @@
    <methodparam><type>resource</type><parameter>finfo</parameter></methodparam>
    <methodparam><type>string</type><parameter>string</parameter></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam>
+   <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam>
   </methodsynopsis>
   <classsynopsis>
    <ooclass><classname>finfo</classname></ooclass>
@@ -21,6 +22,7 @@
     <type>string</type><methodname>buffer</methodname>
     <methodparam><type>string</type><parameter>string</parameter></methodparam>
     <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam>
+    <methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam>
    </methodsynopsis>
   </classsynopsis>
 
@@ -58,6 +60,13 @@
       </para>
      </listitem>
     </varlistentry>
+    <varlistentry>
+     <term><parameter>context</parameter></term>
+     <listitem>
+      <para>
+      </para>
+     </listitem>
+    </varlistentry>
    </variablelist>
   </para>
  </refsect1>
http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/fileinfo/functions/finfo-open.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc-hu/reference/fileinfo/functions/finfo-open.xml
diff -u phpdoc-hu/reference/fileinfo/functions/finfo-open.xml:1.2 phpdoc-hu/reference/fileinfo/functions/finfo-open.xml:1.3
--- phpdoc-hu/reference/fileinfo/functions/finfo-open.xml:1.2	Sat Jun 23 13:37:30 2007
+++ phpdoc-hu/reference/fileinfo/functions/finfo-open.xml	Fri Aug 17 15:29:22 2007
@@ -1,19 +1,22 @@
 <?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.1 Maintainer: chappy Status: ready -->
+<!-- EN-Revision: 1.3 Maintainer: chappy Status: ready -->
 <!-- Reviewed: no -->
-<!-- Generated by xml_proto.php v2.3. Found in /scripts directory of phpdoc. -->
 <refentry xml:id="function.finfo-open" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>finfo_open</refname>
+  <refname>finfo->__construct()</refname>
   <refpurpose>Létrehoz egy új fileinfo erõforrást</refpurpose>
  </refnamediv>
+ 
  <refsect1 role="description">
   &reftitle.description;
+  <para>Eljárást használó stílus:</para>
   <methodsynopsis>
    <type>resource</type><methodname>finfo_open</methodname>
    <methodparam choice="opt"><type>int</type><parameter>options</parameter></methodparam>
    <methodparam choice="opt"><type>string</type><parameter>arg</parameter></methodparam>
   </methodsynopsis>
+  <para>Objektum orientált stílus (konstruktor):</para>
   <classsynopsis>
    <ooclass><classname>finfo</classname></ooclass>
    <constructorsynopsis>
@@ -22,11 +25,9 @@
     <methodparam choice="opt"><type>string</type><parameter>magic_file</parameter></methodparam>
    </constructorsynopsis>
   </classsynopsis>
-
   <para>
    Ez a függvény megnyit egy magic adatbázist, és visszaadja azt erõforrásként.
   </para>
-
  </refsect1>
  <refsect1 role="parameters">
   &reftitle.parameters;
@@ -48,7 +49,7 @@
        Egy magic adatbázisfájl neve, ez rendszerint 
        <filename>/eleresi/ut/magic.mime</filename>. Ha nincs megadva, a 
        <literal>MAGIC</literal> környezeti változót használja. Ha ez a változó sincs 
-							beállítva, a <filename>/usr/share/misc/magic</filename> elérési utat használja.
+       beállítva, a <filename>/usr/share/misc/magic</filename> elérési utat használja alapértelmezettként.
        A <literal>.mime</literal> és/vagy <literal>.mgc</literal> kiterjesztéseket
        szükség esetén hozzáadja.
       </para>
@@ -57,6 +58,7 @@
    </variablelist>
   </para>
  </refsect1>
+ 
  <refsect1 role="returnvalues">
   &reftitle.returnvalues;
   <para>
@@ -64,6 +66,60 @@
   </para>
  </refsect1>
 
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <example>
+   <title>Objektum orientált stílus</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+$finfo = new finfo(FILEINFO_MIME, "/usr/share/misc/magic"); // a mimetype kiterjesztés mime típusának kinyerése
+
+if (!$finfo) {
+    echo "Opening fileinfo database failed";
+    exit();
+}
+
+/* a megadott fájl mime típusának kinyerése */
+$filename = "/usr/local/something.txt";
+echo $finfo->file($filename);
+
+/* kapcsolat bezárása */
+$finfo->close();
+?>
+]]>
+  </programlisting>
+  </example>
+  <example>
+   <title>Eljárást használó stílus</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+$finfo = finfo_open(FILEINFO_MIME, "/usr/share/misc/magic"); // a mimetype kiterjesztés mime típusának kinyerése
+
+if (!$finfo) {
+    echo "Opening fileinfo database failed";
+    exit();
+}
+
+/* a megadott fájl mime típusának kinyerése */
+$filename = "/usr/local/something.txt";
+echo finfo_file($finfo, $filename);
+
+/* kapcsolat bezárása */
+finfo_close($finfo);
+?>
+]]>
+   </programlisting>
+  </example>
+  &example.outputs;
+  <screen>
+<![CDATA[
+text/plain
+]]>
+  </screen>
+ </refsect1>
+
  <refsect1 role="seealso">
   &reftitle.seealso;
   <para>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.