cvs: phpdoc-pl /reference/tidy reference.xml
| From: | Adam Major | Date: | Mon, 08 Jan 2007 13:47:21 +0000 |
| Subject: | cvs: phpdoc-pl /reference/tidy reference.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-970@lists.php.net to get a copy of this message | ||
adi Mon Jan 8 13:47:21 2007 UTC
Added files:
/phpdoc-pl/reference/tidy reference.xml
Log:
[joeaccord] New file
http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/tidy/reference.xml?view=markup&rev=1.1
Index: phpdoc-pl/reference/tidy/reference.xml
+++ phpdoc-pl/reference/tidy/reference.xml
<?xml version='1.0' encoding='iso-8859-2'?>
<!-- EN-Revision: 1.9 Maintainer: joeaccord Status: ready -->
<!-- $Revision: 1.1 $ -->
<!-- Purpose: basic.other -->
<!-- Membership: pecl, bundled, external -->
<reference id="ref.tidy">
<title>Tidy</title>
<titleabbrev>tidy</titleabbrev>
<partintro>
<section id="tidy.intro">
&reftitle.intro;
<para>
Tidy jest dowi±zaniem do narzêdzia Tidy HTML Czy¶æ i Napraw,
które pozwala nie tylko porz±dkowaæ i manipulowaæ dokumentami HTML
ale równie¿ przemierzaæ drzewo dokumentu.
</para>
</section>
<section id="tidy.requirements">
&reftitle.required;
<para>
Aby u¿ywaæ Tidy musisz mieæ zainstalowan± bibliotekê libtidy
dostêpn± na stronie <ulink url="&url.tidy;">&url.tidy;</ulink>.
</para>
</section>
&reference.tidy.configure;
&reference.tidy.ini;
<section id="tidy.resources">
&reftitle.resources;
&no.resource;
</section>
<section id='tidy.classes'>
&reftitle.classes;
<section id='tidy.class.tidynode'>
<title><classname>tidyNode</classname></title>
<section id='tidy.class.tidynode.methods'>
&reftitle.methods;
<itemizedlist>
<listitem>
<para><xref linkend='function.tidyNode-hasChildren' /> - Zwraca
&true; je¿eli bie¿±cy wêze³ posiada potomków</para>
</listitem>
<listitem>
<para><xref linkend='function.tidyNode-hasSiblings' /> - Zwraca
&true; je¿eli bie¿±cy wêze³ posiada s±siadów</para>
</listitem>
<listitem>
<para><xref linkend='function.tidyNode-isAsp' /> - Zwraca &true;
je¿eli bie¿±cy wêze³ jest kodem ASP</para>
</listitem>
<listitem>
<para><xref linkend='function.tidyNode-isComment' /> - Zwraca
&true; je¿eli bie¿±cy wêze³ jest komentarzem</para>
</listitem>
<listitem>
<para><xref linkend='function.tidyNode-isHtml' /> - Zwraca &true;
je¿eli bie¿±cy wêze³ to HTML</para>
</listitem>
<listitem>
<para><xref linkend='function.tidyNode-isJste' /> - Zwraca &true;
je¿eli bie¿±cy wêze³ jest kodem JSTE</para>
</listitem>
<listitem>
<para><xref linkend='function.tidyNode-isPhp' /> - Zwraca &true;
je¿eli bie¿±cy wêze³ jest kodem PHP</para>
</listitem>
<listitem>
<para><xref linkend='function.tidyNode-isText' /> - Zwraca &true;
je¿eli bie¿±cy wêze³ jest czystym tekstem (nie jest kodem)</para>
</listitem>
</itemizedlist>
</section>
<section id='tidy.class.tidynode.properties'>
&reftitle.properties;
<itemizedlist>
<listitem>
<para>value - warto¶æ wêz³a (np.: tekst)</para>
</listitem>
<listitem>
<para>name - nazwa znacznika (np. html, a, itd.)</para>
</listitem>
<listitem>
<para>type - typ wêz³a (jedna z poni¿szych sta³ych, np.
<constant>TIDY_NODETYPE_PHP</constant>)</para>
</listitem>
<listitem>
<para>line* - linia w której zaczyna siê wêze³</para>
</listitem>
<listitem>
<para>column* - kolumna w której zaczyna siê wêze³</para>
</listitem>
<listitem>
<para>proprietary* - &true; je¿eli wêze³ wskazuje na niekompatybilny
znacznik</para>
</listitem>
<listitem>
<para>id - identyfikator ID znacznika (jeden z poni¿szych, np.
<constant>TIDY_TAG_FRAME</constant>)</para>
</listitem>
<listitem>
<para>attribute - tablica zawieraj±ca argumenty bie¿±cego wêz³a, lub &null;
je¿eli nie wystêpuj±</para>
</listitem>
<listitem>
<para>child - tablica zawieraj±ca potomków wêz³ów uporz±dkowanych przez Tidy,
lub &null; je¿eli nie wystêpuj±</para>
</listitem>
</itemizedlist>
<note>
<para>
W³a¶ciwo¶ci oznaczone symbolem * s± dostêpne od PHP 5.1.0.
</para>
</note>
</section>
</section>
</section>
&reference.tidy.constants;
<section id="tidy.examples">
&reftitle.examples;
<para>
Ten nieskomplikowany przyk³ad pokazuje podstawowe u¿ycie Tidy.
<example>
<title>Podstawowe u¿ycie Tidy</title>
<programlisting role="php">
<![CDATA[
<?php
ob_start();
?>
<html>przyk³adowy dokument html</html>
<?
$html = ob_get_clean();
// konfiguracja Tidy
$config = array(
'indent' => true,
'output-xhtml' => true,
'wrap' => 200);
// Tidy
$tidy = new tidy;
$tidy->parseString($html, $config, 'utf8');
$tidy->cleanRepair();
// Output
echo $tidy;
?>
]]>
</programlisting>
</example>
</para>
</section>
</partintro>
&reference.tidy.functions;
</reference>
<!-- 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
-->