Index: tidy.c =================================================================== RCS file: /repository/php-src/ext/tidy/tidy.c,v retrieving revision 1.57 diff -u -r1.57 tidy.c --- tidy.c 4 Aug 2004 16:41:13 -0000 1.57 +++ tidy.c 9 Aug 2004 12:18:03 -0000 @@ -958,6 +958,8 @@ DISPLAY_INI_ENTRIES(); } +/* {{{ proto string ob_tidyhandler(string input [, int mode]) + ob_start callback function to repair the buffer */ PHP_FUNCTION(ob_tidyhandler) { char *input; @@ -1005,8 +1007,9 @@ tidyRelease(doc); tidyBufFree(&errbuf); } +/* }}} */ -/* {{{ proto bool tidy_parse_string(string input [, mixed config_options [, string encoding]]) +/* {{{ proto resource tidy_parse_string(string input [, mixed config_options [, string encoding]]) Parse a document stored in a string */ PHP_FUNCTION(tidy_parse_string) { @@ -1036,7 +1039,7 @@ } /* }}} */ -/* {{{ proto string tidy_get_error_buffer([boolean detailed]) +/* {{{ proto string tidy_get_error_buffer(resource tidy) Return warnings and errors which occured parsing the specified document*/ PHP_FUNCTION(tidy_get_error_buffer) { @@ -1050,7 +1053,7 @@ } /* }}} */ -/* {{{ proto string tidy_get_output() +/* {{{ proto string tidy_get_output(resource tidy) Return a string representing the parsed tidy markup */ PHP_FUNCTION(tidy_get_output) { @@ -1065,7 +1068,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_parse_file(string file [, mixed config_options [, string encoding [, bool use_include_path]]]) +/* {{{ proto resource tidy_parse_file(string file [, mixed config_options [, string encoding [, bool use_include_path]]]) Parse markup in file or URI */ PHP_FUNCTION(tidy_parse_file) { @@ -1103,7 +1106,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_clean_repair() +/* {{{ proto bool tidy_clean_repair(resource tidy) Execute configured cleanup and repair operations on parsed markup */ PHP_FUNCTION(tidy_clean_repair) { @@ -1118,7 +1121,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_repair_string(string data [, mixed config_file [, string encoding]]) +/* {{{ proto string tidy_repair_string(string data [, mixed config_file [, string encoding]]) Repair a string using an optionally provided configuration file */ PHP_FUNCTION(tidy_repair_string) { @@ -1127,7 +1130,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_repair_file(string filename [, mixed config_file [, string encoding [, bool use_include_path]]]) +/* {{{ proto string tidy_repair_file(string filename [, mixed config_file [, string encoding [, bool use_include_path]]]) Repair a file using an optionally provided configuration file */ PHP_FUNCTION(tidy_repair_file) { @@ -1136,7 +1139,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_diagnose() +/* {{{ proto bool tidy_diagnose(resource tidy) Run configured diagnostics on parsed and repaired markup. */ PHP_FUNCTION(tidy_diagnose) { @@ -1165,7 +1168,7 @@ } /* }}} */ -/* {{{ proto array tidy_get_config() +/* {{{ proto array tidy_get_config(resource tidy) Get current Tidy configuarion */ PHP_FUNCTION(tidy_get_config) { @@ -1204,7 +1207,7 @@ } /* }}} */ -/* {{{ proto int tidy_get_status() +/* {{{ proto int tidy_get_status(resource tidy) Get status of specfied document. */ PHP_FUNCTION(tidy_get_status) { @@ -1214,7 +1217,7 @@ } /* }}} */ -/* {{{ proto int tidy_get_html_ver() +/* {{{ proto int tidy_get_html_ver(resource tidy) Get the Detected HTML version for the specified document. */ PHP_FUNCTION(tidy_get_html_ver) { @@ -1224,7 +1227,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_is_xhtml() +/* {{{ proto bool tidy_is_xhtml(resource tidy) Indicates if the document is a XHTML document. */ PHP_FUNCTION(tidy_is_xhtml) { @@ -1234,7 +1237,7 @@ } /* }}} */ -/* {{{ proto boolean tidy_is_xhtml() +/* {{{ proto bool tidy_is_xhtml(resource tidy) Indicates if the document is a generic (non HTML/XHTML) XML document. */ PHP_FUNCTION(tidy_is_xml) { @@ -1244,7 +1247,7 @@ } /* }}} */ -/* {{{ proto int tidy_error_count() +/* {{{ proto int tidy_error_count(resource tidy) Returns the Number of Tidy errors encountered for specified document. */ PHP_FUNCTION(tidy_error_count) { @@ -1254,7 +1257,7 @@ } /* }}} */ -/* {{{ proto int tidy_warning_count() +/* {{{ proto int tidy_warning_count(resource tidy) Returns the Number of Tidy warnings encountered for specified document. */ PHP_FUNCTION(tidy_warning_count) { @@ -1264,7 +1267,7 @@ } /* }}} */ -/* {{{ proto int tidy_access_count() +/* {{{ proto int tidy_access_count(resource tidy) Returns the Number of Tidy accessibility warnings encountered for specified document. */ PHP_FUNCTION(tidy_access_count) { @@ -1274,7 +1277,7 @@ } /* }}} */ -/* {{{ proto int tidy_config_count() +/* {{{ proto int tidy_config_count(resource tidy) Returns the Number of Tidy configuration errors encountered for specified document. */ PHP_FUNCTION(tidy_config_count) { @@ -1343,6 +1346,8 @@ } /* }}} */ +/* {{{ proto object __construct([string filename [, mixed config_options [, string encoding [, bool use_include_path]]]]) + Constructs a new tidy object */ TIDY_DOC_METHOD(__construct) { char *inputfile = NULL, *enc = NULL; @@ -1376,7 +1381,10 @@ } } +/* }}} */ +/* {{{ proto bool tidy->parseFile(string filename [, mixed config_options [, string encoding [, bool use_include_path]]]) + Parse markup in file or URI */ TIDY_DOC_METHOD(parseFile) { char *inputfile, *enc = NULL; @@ -1410,7 +1418,10 @@ efree(contents); } +/* }}} */ +/* {{{ proto bool tidy->parseString(string input [, mixed config_options [, string encoding]]) + Parse a document stored in a string */ TIDY_DOC_METHOD(parseString) { char *input, *enc = NULL; @@ -1434,7 +1445,7 @@ RETURN_FALSE; } - +/* }}} */ /* {{{ proto TidyNode tidy_get_root() Returns a TidyNode Object representing the root of the tidy parse tree */