Go to the documentation of this file.00001 <?php
00002 if (!function_exists('tidy_get_opt_doc'))
00003 die('You need PHP 5.1 and a recent libTidy');
00004
00005 $tidy = new tidy;
00006 $config = $tidy->getConfig();
00007
00008 ksort($config);
00009
00010 foreach ($config as $opt => $val) {
00011
00012 if (!$doc = $tidy->getOptDoc($opt))
00013 $doc = 'no documentation available!';
00014
00015 $val = ($tidy->getOpt($opt) === true) ? 'true' : $val;
00016 $val = ($tidy->getOpt($opt) === false) ? 'false' : $val;
00017
00018 echo "<p><b>$opt</b> (default: '$val')<br />".
00019 "$doc</p><hr />\n";
00020 }
00021
00022 ?>