cvs: phpdoc-pl /reference/tidy/functions ob-tidyhandler.xml tidy-get-body.xml tidy-get-head.xml tidy-get-html-ver.xml tidy-get-html.xml
tidy-get-output.xml tidy-repair-file.xml tidy-repair-string.xml tidy-setopt.xml

From: Date: Sat, 17 Mar 2007 11:00:12 +0000
Subject: cvs: phpdoc-pl /reference/tidy/functions ob-tidyhandler.xml tidy-get-body.xml tidy-get-head.xml tidy-get-html-ver.xml tidy-get-html.xml
tidy-get-output.xml tidy-repair-file.xml tidy-repair-string.xml tidy-setopt.xml
Groups: php.doc.pl 
Request: Send a blank email to doc-pl+get-1056@lists.php.net to get a copy of this message
joeaccord Sat Mar 17 11:00:12 2007 UTC Added files: /phpdoc-pl/reference/tidy/functions ob-tidyhandler.xml tidy-get-body.xml tidy-get-head.xml tidy-get-html-ver.xml tidy-get-html.xml tidy-get-output.xml tidy-repair-file.xml tidy-repair-string.xml tidy-setopt.xml Log: new files

http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/tidy/functions/ob-tidyhandler.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/tidy/functions/ob-tidyhandler.xml +++ phpdoc-pl/reference/tidy/functions/ob-tidyhandler.xml <?xml version='1.0' encoding='iso-8859-2'?> <!-- EN-Revision: 1.2 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.ob-tidyhandler"> <refnamediv> <refname>ob_tidyhandler</refname> <refpurpose> Funkcja zwrotna do czyszczenia bufora wyj¶cia dla funkcji ob_start </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>string</type><methodname>ob_tidyhandler</methodname> <methodparam><type>string</type><parameter>wej¶cie</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>tryb</parameter></methodparam> </methodsynopsis> <para> <function>ob_tidyhandler</function> jest identyczne jak u¿ycie funkcji zwrotnej do naprawiania bufora wyj¶cia w <function>ob_start</function>. </para> <para> <example> <title>Przyk³ad <function>ob_tidyhandler</function></title> <programlisting role="php"> <![CDATA[ <?php ob_start('ob_tidyhandler'); echo '<p>test</i>'; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title></title> </head> <body> <p>test</p> </body> </html> ]]> </screen> </example> </para> <para> Patrz tak¿e: <function>ob_start</function>. </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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/tidy/functions/tidy-get-body.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/tidy/functions/tidy-get-body.xml +++ phpdoc-pl/reference/tidy/functions/tidy-get-body.xml <?xml version='1.0' encoding='iso-8859-2'?> <!-- EN-Revision: 1.8 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.tidy-get-body"> <refnamediv> <refname>tidy_get_body</refname> <refpurpose> Zwraca obiekt tidyNode zaczynaj±cy siê od znacznika &lt;body&gt; w parsowanym drzewie tidy </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <para>Styl proceduralny:</para> <methodsynopsis> <type>tidyNode</type><methodname>tidy_get_body</methodname> <methodparam><type>tidy</type><parameter>obiekt</parameter></methodparam> </methodsynopsis> <para>Styl zorientowany obiektowo:</para> <methodsynopsis> <type>tidyNode</type><methodname>tidy->body</methodname> <void /> </methodsynopsis> <para> Ta funkcja zwraca obiekt tidyNode zaczynaj±cy siê od znacznika &lt;body&gt; w parsowanym drzewie tidy. </para> <para> <example> <title>Przyk³ad <function>tidy_get_body</function></title> <programlisting role="php"> <![CDATA[ <?php $html = ' <html> <head> <title>test</title> </head> <body> <p>paragraph</p> </body> </html>'; $tidy = tidy_parse_string($html); $body = tidy_get_body($tidy); echo $body->value; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ <body> <p>paragraph</p> </body> ]]> </screen> </example> </para> &note.tidy.ze2; <para> Patrz tak¿e <function>tidy_get_head</function> i <function>tidy_get_html</function>. </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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/tidy/functions/tidy-get-head.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/tidy/functions/tidy-get-head.xml +++ phpdoc-pl/reference/tidy/functions/tidy-get-head.xml <?xml version='1.0' encoding='iso-8859-2'?> <!-- EN-Revision: 1.8 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.tidy-get-head"> <refnamediv> <refname>tidy_get_head</refname> <refpurpose> Zwraca obiekt tidyNode zaczynaj±cy siê od znacznika &lt;head&gt; w parsowanym drzewie tidy </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <para>Styl proceduralny:</para> <methodsynopsis> <type>tidyNode</type><methodname>tidy_get_head</methodname> <methodparam><type>tidy</type><parameter>obiekt</parameter></methodparam> </methodsynopsis> <para>Styl zorientowany obiektowo:</para> <methodsynopsis> <type>tidyNode</type><methodname>tidy->head</methodname> <void /> </methodsynopsis> <para> Ta funkcja zwraca obiekt tidyNode zaczynaj±cy siê od znacznika &lt;head&gt; w parsowanym drzewie tidy. </para> <para> <example> <title>Przyk³ad <function>tidy_get_head</function></title> <programlisting role="php"> <![CDATA[ <?php $html = ' <html> <head> <title>test</title> </head> <body> <p>paragraph</p> </body> </html>'; $tidy = tidy_parse_string($html); $head = tidy_get_head($tidy); echo $head->value; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ <head> <title>test</title> </head> ]]> </screen> </example> </para> &note.tidy.ze2; <para> Patrz tak¿e: <function>tidy_get_body</function> i <function>tidy_get_html</function>. </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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/tidy/functions/tidy-get-html-ver.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/tidy/functions/tidy-get-html-ver.xml +++ phpdoc-pl/reference/tidy/functions/tidy-get-html-ver.xml <?xml version='1.0' encoding='iso-8859-2'?> <!-- EN-Revision: 1.6 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.tidy-get-html-ver"> <refnamediv> <refname>tidy_get_html_ver</refname> <refpurpose> Pobiera wykryt± wersjê HTML w okre¶lonym dokumencie </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <para>Styl proceduralny:</para> <methodsynopsis> <type>int</type><methodname>tidy_get_html_ver</methodname> <methodparam><type>tidy</type><parameter>obiekt</parameter></methodparam> </methodsynopsis> <para>Styl zorientowany obiektowo:</para> <methodsynopsis> <type>int</type><methodname>tidy->getHtmlVer</methodname> <void /> </methodsynopsis> <para> <function>tidy_get_html_ver</function> zwraca wykryt± wersjê HTML w okre¶lonym <parameter>obiekcie</parameter> tidy. </para> <warning> <para> Ta funkcja jeszcze nie jest zaimplementowana w bibliotece Tidylib, tak wiêc zawsze zwraca <literal>0</literal>. </para> </warning> </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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/tidy/functions/tidy-get-html.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/tidy/functions/tidy-get-html.xml +++ phpdoc-pl/reference/tidy/functions/tidy-get-html.xml <?xml version='1.0' encoding='iso-8859-2'?> <!-- EN-Revision: 1.9 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.tidy-get-html"> <refnamediv> <refname>tidy_get_html</refname> <refpurpose> Zwraca obiekt tidyNode zaczynaj±cy siê od znacznika &lt;html&gt; w parsowanym drzewie tidy </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <para>Styl proceduralny:</para> <methodsynopsis> <type>tidyNode</type><methodname>tidy_get_html</methodname> <methodparam><type>tidy</type><parameter>obiekt</parameter></methodparam> </methodsynopsis> <para>Styl zorientowany obiektowo:</para> <methodsynopsis> <type>tidyNode</type><methodname>tidy->html</methodname> <void /> </methodsynopsis> <para> Ta funkcja zwraca obiekt tidyNode zaczynaj±cy siê od znacznika &lt;html&gt; w parsowanym drzewie tidy. </para> <para> <example> <title>Przyk³ad <function>tidy_get_html</function></title> <programlisting role="php"> <![CDATA[ <?php $html = ' <html> <head> <title>test</title> </head> <body> <p>paragraph</p> </body> </html>'; $tidy = tidy_parse_string($html); $html = tidy_get_html($tidy); echo $html->value; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ <html> <head> <title>test</title> </head> <body> <p>paragraph</p> </body> </html> ]]> </screen> </example> </para> &note.tidy.ze2; <para> Patrz tak¿e: <function>tidy_get_body</function> i <function>tidy_get_head</function>. </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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/tidy/functions/tidy-get-output.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/tidy/functions/tidy-get-output.xml +++ phpdoc-pl/reference/tidy/functions/tidy-get-output.xml <?xml version='1.0' encoding='iso-8859-2'?> <!-- EN-Revision: 1.3 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.tidy-get-output"> <refnamediv> <refname>tidy_get_output</refname> <refpurpose> Zwraca ³añcuch zawieraj±cy parsowane znaczniki tidy </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>string</type><methodname>tidy_get_output</methodname> <methodparam><type>tidy</type><parameter>obiekt</parameter></methodparam> </methodsynopsis> <para> <function>tidy_get_output</function> zwraca ³añcuch z naprawionym kodem html. </para> <para> <example> <title>Przyk³ad <function>tidy_get_output</function></title> <programlisting role="php"> <![CDATA[ <?php $html = '<p>paragraph</i>'; $tidy = tidy_parse_string($html); $tidy->CleanRepair(); echo tidy_get_output($tidy); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title></title> </head> <body> <p>paragraph</p> </body> </html> ]]> </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:"../../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/tidy/functions/tidy-repair-file.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/tidy/functions/tidy-repair-file.xml +++ phpdoc-pl/reference/tidy/functions/tidy-repair-file.xml <?xml version='1.0' encoding='iso-8859-2'?> <!-- EN-Revision: 1.5 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.tidy-repair-file"> <refnamediv> <refname>tidy_repair_file</refname> <refpurpose> Naprawia plik i zwraca go w postaci ³añcucha </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>string</type><methodname>tidy_repair_file</methodname> <methodparam><type>string</type><parameter>nazwa_pliku</parameter></methodparam> <methodparam choice="opt"><type>mixed</type><parameter>konfiguracja</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>kodowanie_znaków</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>u¿yj_include_path</parameter></methodparam> </methodsynopsis> <para> Ta funkcja naprawia podany plik i zwraca go w postaci ³añcucha. </para> &tidy.conf-enc; <para> <example> <title>Przyk³ad <function>tidy_repair_file</function></title> <programlisting role="php"> <![CDATA[ <?php $file = 'file.html'; $repaired = tidy_repair_file($file); rename($file, $file . '.bak'); file_put_contents($file, $repaired); ?> ]]> </programlisting> </example> </para> &note.tidy.2only; <para> Patrz tak¿e: <function>tidy_parse_file</function>, <function>tidy_parse_string</function> i <function>tidy_repair_string</function>. </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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/tidy/functions/tidy-repair-string.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/tidy/functions/tidy-repair-string.xml +++ phpdoc-pl/reference/tidy/functions/tidy-repair-string.xml <?xml version='1.0' encoding='iso-8859-2'?> <!-- EN-Revision: 1.9 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.tidy-repair-string"> <refnamediv> <refname>tidy_repair_string</refname> <refpurpose> Naprawia ³añcuch u¿ywaj±c opcjonalnie dostarczonego pliku konfiguracyjnego </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>string</type><methodname>tidy_repair_string</methodname> <methodparam><type>string</type><parameter>dane_wej¶ciowe</parameter></methodparam> <methodparam choice="opt"><type>mixed</type><parameter>konfiguracja</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>kodowanie_znaków</parameter></methodparam> </methodsynopsis> <para> Ta funkcja naprawia podany ³añcuch. </para> &tidy.conf-enc; <para> <example> <title>Przyk³ad <function>tidy_repair_string</function></title> <programlisting role="php"> <![CDATA[ <?php ob_start(); ?> <html> <head> <title>test</title> </head> <body> <p>error</i> </body> </html> <?php $buffer = ob_get_clean(); $tidy = tidy_repair_string($buffer); echo $tidy; ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>test</title> </head> <body> <p>error</p> </body> </html> ]]> </screen> </example> </para> &note.tidy.2only; <para> Patrz tak¿e: <function>tidy_parse_file</function>, <function>tidy_parse_string</function> i <function>tidy_repair_file</function>. </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 --> http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/tidy/functions/tidy-setopt.xml?view=markup&rev=1.1 Index: phpdoc-pl/reference/tidy/functions/tidy-setopt.xml +++ phpdoc-pl/reference/tidy/functions/tidy-setopt.xml <?xml version='1.0' encoding='iso-8859-2'?> <!-- EN-Revision: 1.6 Maintainer: joeaccord Status: ready --> <!-- $Revision: 1.1 $ --> <refentry id="function.tidy-setopt"> <refnamediv> <refname>tidy_setopt</refname> <refpurpose> Uaktualnia ustawienia konfiguracji dla okre¶lonego dokumentu tidy </refpurpose> </refnamediv> <refsect1> <title>Opis</title> <methodsynopsis> <type>bool</type><methodname>tidy_setopt</methodname> <methodparam><type>string</type><parameter>opcja</parameter></methodparam> <methodparam><type>mixed</type><parameter>warto¶æ</parameter></methodparam> </methodsynopsis> <para> <function>tidy_setopt</function> uaktualnia okre¶lon± <parameter>opcjê</parameter> przypisuj±c jej now± <parameter>warto¶æ</parameter>. Tu mo¿esz znale¿æ listê wszystkich opcji konfiguracyjnych: <ulink url="&url.tidy.conf;">&url.tidy.conf;</ulink>. </para> <para> <example> <title>Przyk³ad <function>tidy_setopt</function></title> <programlisting role="php"> <![CDATA[ <?php $html = '<p>test</i>'; $tidy = tidy_parse_string($html); tidy_setopt('indent', FALSE); ?> ]]> </programlisting> </example> </para> <para> Patrz tak¿e <function>tidy_getopt</function>, <function>tidy_get_config</function>, <function>tidy_reset_config</function> i <function>tidy_save_config</function>. </para> &note.tidy.1only; </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 -->
« previous php.doc.pl (#1056) next »