2011-08-16 11:38:58 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2009-07-11 09:13:17 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-12-30 00:34:38 +00:00
|
|
|
<refentry xml:id="function.tidy-warning-count" xmlns="http://docbook.org/ns/docbook">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>tidy_warning_count</refname>
|
|
|
|
<refpurpose>Returns the Number of Tidy warnings encountered for specified document</refpurpose>
|
|
|
|
</refnamediv>
|
2007-12-30 00:52:46 +00:00
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2007-12-30 00:34:38 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>int</type><methodname>tidy_warning_count</methodname>
|
|
|
|
<methodparam><type>tidy</type><parameter>object</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
2009-04-25 18:36:25 +00:00
|
|
|
Returns the number of Tidy warnings encountered for the specified document.
|
2007-12-30 00:34:38 +00:00
|
|
|
</para>
|
2007-12-30 00:52:46 +00:00
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>object</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2009-04-13 09:00:01 +00:00
|
|
|
&tidy.object;
|
2007-12-30 00:52:46 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
|
|
|
Returns the number of warnings.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
2007-12-30 00:34:38 +00:00
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title><function>tidy_warning_count</function> example</title>
|
|
|
|
<programlisting role="php">
|
2004-03-03 18:24:08 +00:00
|
|
|
<![CDATA[
|
|
|
|
<?php
|
|
|
|
$html = '<p>test</i>
|
|
|
|
<bogustag>bogus</bogustag>';
|
2003-11-04 13:26:55 +00:00
|
|
|
|
2004-03-03 18:24:08 +00:00
|
|
|
$tidy = tidy_parse_string($html);
|
2003-11-04 13:26:55 +00:00
|
|
|
|
2004-03-03 18:24:08 +00:00
|
|
|
echo tidy_error_count($tidy) . "\n"; //1
|
|
|
|
echo tidy_warning_count($tidy) . "\n"; //5
|
|
|
|
?>
|
|
|
|
]]>
|
2007-12-30 00:34:38 +00:00
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</para>
|
2007-12-30 00:52:46 +00:00
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
|
|
&reftitle.seealso;
|
2007-12-30 00:34:38 +00:00
|
|
|
<para>
|
2007-12-30 00:52:46 +00:00
|
|
|
<simplelist>
|
|
|
|
<member><function>tidy_error_count</function></member>
|
|
|
|
<member><function>tidy_access_count</function></member>
|
|
|
|
</simplelist>
|
2007-12-30 00:34:38 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
2003-11-04 13:26:55 +00:00
|
|
|
|
|
|
|
<!-- 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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2003-11-04 13:26:55 +00:00
|
|
|
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
|
|
|
|
-->
|