--- nfo/php/libs/com.newsblob.phphtmllib/CHANGELOG 2003/02/22 20:55:15 1.1 +++ nfo/php/libs/com.newsblob.phphtmllib/CHANGELOG 2004/05/06 16:23:36 1.3 @@ -1,17 +1,278 @@ -+ major change -++ Super duper major change. +$Id: CHANGELOG,v 1.3 2004/05/06 16:23:36 jonen Exp $ + +++ Major change or new feature. ++ fairly large change - minor change -Version 2.2.1 - Walt A. Boring IV - - fixed problems with the simple search capability for the +Version 2.4.1 - April 1, 2004 + + reworked the FormElement::get_element_text() method so that the + child class can return whatever it wants. + - Fixed an issue with the FEFile and not getting the value correctly + when in confirmation and final mode. + - Fixed an issue with trying to customize the FormElement required field + marker. Jacek Rusin + - fixed a validation bug with FEFile. + - fixed a bug with the FERadioGroup's href link on the text that caused the + click to result in the browser going to the top of the page. + - fixed a bug with the FormProcessor::_build_form_tag() not building the correct + onsubmit. --walt + - fixed a minor bug in the DefaultGuiDataList with the action arrow + image paths. (UweBaumann at onlinehome.de) + + Created 2 new examples: example9.php and examples/form3.php + + Fixed a bug causing problems with PEAR+postgresql in the data list widget. + --culley + - Added align parameter to html_img_href() (Denny Reeh ) + - Fixed a bug with the displaying of the FormElement label when the FormElement + had an error. + ++ Updated ArrayDataListSource to support searching of data. This removed the + necessity of the ArrayDataListSource::set_prequery_filter_flag() method, as + this is determined automatically depending on if a search was done or not. + ++ Added DataList::set_showall(), which automatically shows EVERY row back from the + DataListSource. When this is set the DefaultGUIDataList will not show navigation. + - Applied a minor cleanup patch to TextCSSNav from Erich Enke + + Applied a patch to FEFile that adds the ability to set the acceptable file types + and file size from culley at fastmail.fm + - Fixed a small issue with the right boarder of the TextCSSNav's first element. + ++ Added FERegEx and FormValidation::is_regex() to support a generic Regular expression + based FormElement from Culley Harrelson + + Added the ability to create a master-slave element relationship in FormElement. + Added an element FEListBoxMaster that uses this relationship between two listboxes. + - Fixed a copy & paste bug w/ TD::set_rowspan(). + Thanks Alfonso Cepeda Caballos + ++ Added the ability to the DefaultGUIDataList to save checked items in a + checkbox action column between pages. + +Version 2.4.0 - Feb 3, 2004 + + Added Container::get_element() - to return the data element, so you can + modify it post add(); + + Added align attribute parameter to html_img() - Denny Reeh + + Added the ability to set a secondary orderby list for the DataListSource. + + Added the support for the secondary orderby list in the SQLDataListSource + - fixed broken css link in examples/widget9.php + + cleaned up the test directory, and started creating pear PHPUnit tests + + Added the ability to do a collapsing search title for the DefaultGuiDataList + - Fixed a problem with the HR tag. It didn't have the correct flags set. + (thanks to Mufasa from http://www.firetiger.net/) + - added another fix to prevent warnings in XMLTagClass::_render_open_tag() + (thanks to Mufasa from http://www.firetiger.net/) + - added title parameter to html_area() - Denny Reeh + - added a small fix to the HTMLPageClass::add() method when adding a + widget that has a get_javascript() method. This prevents a possible warning. + - fixed some tab selected bugs with ActiveTab + - added TABLEtag::set_summary() to set the summary attribute for + speech-synthesizing/non-visual browsers. + - added dtd URL for the HTMLPageClass when in HTML 4 rendering mode. + - added FEUnitedStates form element. + - added FEZipcode Form element. + - save the render type in the HTMLPageClass to solve potential issues. + - changed API for html_optgroup() to include the label as the first param. + - added support in form_select() to handle a 2 level deep multidimensional array + for the $options param. This is usefull for optgroup support in the select tag. + - fixed a bug with ArrayDataListSource. It wasn't limiting the number of rows + to display. oops. + - fixed some problems with html_frameset(). + - added 3rd param to html_option to set it as selected or not. + - fixed an issue w/ DataList defines for sortable/not sortable and + case insensitive sortable (David Chatenay) + - added FETextArea length validation and error reporting. + - added InfoTable::set_show_cellborders() which sets the flag to show internal + cell borders or not. + + Added ButtonPanel object. + + Added DialogWidget. + + Added StandardDialogWidget. + + Added MessageBoxWidget. + ++ Added the ability in the PageWidget to do page level permissions checks. + This requires the InfoTable css definitions to be loaded in the browser window + when a permissions error happens. + + Added FormElement::set_element_name() - allow you manually set the name of + the form field. + + Added HTMLPageClass::set_favicon() to set the href and type and enable it. + - DataList::build_column_item() fix: 0 (integer value) is replaced by a space + (David Chatenay) + + Added the ability to disable specific items for the + FEDataList, FEListBox, FEMultiListBox, FECheckBoxList form elements. + + Added FENestedListBox + ++ Added support in the FormProcessor and FormContent to automatically handle + the special FEFile form element while managing a form that contains a + confirmation page (StandardFormContent w/ confirmation enabled). + - fixed an issue with the Copyright character in the FooterNav. (Ivan Gostev) + - fixed some w3c validation errors with onClick in some widgets (Ivan Gostev) + + Added TDtag::set_colspan() and TDtag::set_rowspan() as helpers to + set_tag_attribute() + + Added the new FEComboListBox form element. + - fixed issue with ListAction old api calls. + - Added a new sorting type for DataList - SORTABLE_NUMERIC, that handles sorting + of numeric columns without using the natsort algorithm which is broken for negative + numbers (suren) + ++ Added new TabWidget and TabList widgets for supporting Tabs and their data. + - Fixed a potential case insensitive sorting issue w/ the SQLDataListSource + + Added the ability to change the default value for the flag that tells the + SQLDataListSource to enable case insensitive sorting. + + Added FormElement::set_tabindex() to set the tab index. + + Added FormContent::set_form_tabindex, get_form_tabindex() as a helper to the + FormElement::set_tabindex() method. + - fixed an incorrectly spelled variable name in DataListSource (hanefeldj at ee.nec.de) + - fixed a small js issue with the ActiveTab (mike_walsh at mentor.com + +Version 2.3.0 - July 31, 2003 + - pulled a small issue from FormProcessor. $this->_message never used. + - changed FormProcessor::set_render_form_after_succes() to accept a flag, + instead of just setting it to TRUE always. + - Added some tests in the FormContent element access methods, to help + developing a form. It traps for invalid FormElement labels. + + Added FEFile FormElement from Dave Brondsema + + Started work on the FormWizard + - cleanup of some warnings for the DataList widgets. + - Fixed a problem with doing some queries in the PEARSQLDataListSource + - added HTMLPageClass::set_language() as a request from + Davide "Design" Muzzarelli. + - fixed DefaultGUIDataList alignment blowing up. + - small change to the TABLEtag::add_row method to be cleaner in how + we check for TR or TD objects + + Added the ability to check the status of the FormProcessor state + after the constructor processes the form. Now you can find out + if the form was confirmed and action was processed successfully + so you can do something besides show the form. + - added the ability to find out what action was taken by the form + engine with FormProcessor::get_action() + + Added the ability to automagically set a character limit in the + FETextArea element + + Added the ability to not automatically show the errors in the + FormProcessor. This allows you to show the errors somewhere else + + Added the ability to set the FormContent error table title and width + to something besides the default. + + Added FormContent::get_error_array() and FormProcessor::get_error_array() + + ++ Changed the parameter list to FETextArea(). the rows, cols attributes + for a textarea tag are required. + - changed htmlentities call in HTMLTagClass to htmlspecialchars so we don't + nuke unicode/multibyte chars. + ++ Added FormContent::javascript() and FormElement::javascript() that + automatically get called by the FormProcessor. This allows you to include + some raw javascript into a form or a form element, and it will automatically + get wraped in a script tag and added rendered with the form. + - fixed a lame error in the exmaple7.php source. + - fixed a few warnings in example8.php + - define the HTML_RENDER_TYPE var in SVGDocumentClass so we don't get php warnings. + + Added the ability to filter rows out of the DataListSource object. + just define DataListSource::row_filter() and return TRUE to allow the row or FALSE + to drop the row. + + Added FEYesNoListBox, and added the ability to change the yes/no values + for the FEYesNoRadioGroup + - don't validate FormElements that are disabled. + + + added the ability in the FormContent and FormElement to have more then 1 error + + added FEConfirmActionButton + + added FENumber to validate an int + + added FENumberInRage to validate an int in a range. + + added FEHostnameWithPort to show a hostname and a Port + + added FEIPAddressWithPort + - fixed annoying problem with the form_active_checkbox,form_active_radio and + FECheckBoxList links causing mozilla to jump to the top of the page when clicked. + - removed some of the newlines from the generated output for HTMLPageClass. + + Added HTMLRedirectPage + - cleaned up the use of a define for HTML_RENDER_TYPE. It's now a global var, + so it can be changed on the fly. + - fixed some small warnings in the examples + (thanks Pierre) + - fixed some warnings in the DefaultGUIDataList object. + + Added a DataList::do_action() method that allows you to do whatever + prior to get_data_source() being called. You can pre-massage data in + do_action(). By default, it does nothing. + + Added ArrayDataListSource class that pulls data out of an array + + Added XMLTagClass::set_cdata_flag() to toggle the CDATA wrapper flag + + Added xml_ctag(), which is the same as xml_tag(), but sets the bit to + automatically wrap all tag content in the CDATA wrapper. + + + + + +Version 2.2.4 - April 3, 2003 + - fixed a small documentation issue w/ the DataList::add_header_item() + method. + - pulled out missing development files in the form_elements/includes.inc + D'oh. + - fixed small warnings from HTMLTagClass + +Version 2.2.3 - April 2, 2003 + - fixed a problem with the FormContent errors table width. + - fixed an error in the form1 example. + - fixed an error with Form Confirmation pages with the + FECheckBox Form Element. + - fixed a minor problem with the TABLEtag object, and adding + a BaseWidget child class. It doesn't have a _tag member, so + folks that have MAX errors on, got a warning. + - Fixed a potential issue with XML attributes. There was a chance + that an XML tag's attribute could be empty, which would build + an invalid XML tag. DOCTYPE is now an HTMLTagClass child, because + it needs attributes w/o values. + - Changed FormProcessor to use "post" instead of "POST" so that we + build valid XHTML + - changed the FormElement rendering of onClick, onChange, etc. to use + all lowercase, to build valid XHTML. + - added HTMLPageClass::add_js_link() to replace push_js_link() + - small fix in the DefuaultGUIDataList::_checkbox_javascript() to + be more flexible. Thanks Nils Droge + - made sure the DataList object's form name is set. + - let the user set the DataList form method to post or POST. + - Don't do indentation on a PREtag + - Added FEDataList::set_list_data() method, to allow folks to set the + list of items at any time. + + Some cleanup of the FormProcessor attributes, and added some + easy access methods for setting/getting them. + - fixed the FormContent::add_image_action() method. Can't use onclick + with a input type="image". bogus. + + Added the ability to override the FormValidation and FormErrors classes + used by the FormProcessor, so folks can get their errors and text from + any method. This helps folks create their own i18n FormErrors class. + +Version 2.2.2 - March 10, 2003 + - Aris Basic added a new + PGSQLDataListSource object, to allow folks to use the + PHP built in PostgreSQL native functions for talking to + a DB. This avoids the depenancy on PEAR or ADODB. + - Added the xhtml_strict_attributes array to the FORMtag + declaration. the attributes 'name' and 'target' are not + allowed while in XHTML STRICT mode + (thanks to Philipp Morger ) + - fixed a minor issue in the DataList object that Richard Greene + found. + - cleaned up the old 'test' scripts in test. + - made a small fix to the ADODBSQLDataListSource::count() method when + handling a DB error. Thanks to Nils Droge + - fixed a problem of not being able to search fo '0' in the DataList + Thanks to Nils Droge . + - made a small change to the DefaultGUIDataList to make the search area + text be localizable. + - Added support to change the encoding type for XHTML pages in the + HTMLPageClass::set_encoding() method. + - fixed a PHP NOTICE error output in the XMLTagClass. + - fixed a problem with XML tags that have no content. It now + automatically drops the close tag. + - fixed a problem with HTML tags with no content. it no longer + renders a newline after the open tag. + - fixed a the DOCTYPE tag attributes for XHTML mode. It now gives + the full url path to the DTD's on the W3C site. + (thanks to Philipp Morger ) + - fixed a small indenting problem with XMLTagClass::render_content() + - Moved the SVG, WML, XML widgets into their own dirs under widgets. + + + Added new SVG Graphing classes. You can now graph a line graph + with SVGXYLineGraph + +Version 2.2.1 - February 21, 2003 + - fixed problems with the simple search capability for the DefaultGUIDataList object. - Fixed the count problem with the ADODBDataListSource object - fixed some api calls in the examples/widget8 for form_active_radio and form_active_checkbox + * Thanks to Aris "PhanLord" Basic for the heads up on the bugs. -Version 2.2.0 - Walt A. Boring IV + +Version 2.2.0 - February 20, 2003 - added attributes array as the last parameter to form_select. - the attributes are for the select tag. + the attributes are for the select tag. + Added the new RoundTitleTable widget. It looks like the NavTable widget, but can contain anything. - fixed a minor issue with Container::reset_content() It used to @@ -20,47 +281,47 @@ - fixed another duplicated method in SQLDataListSource. arg. + Added the CSSContainer widget + changed all of the themed css building scripts to use the - new CSSContainer widget. This is handy for site wide + new CSSContainer widget. This is handy for site wide themeing. - Fixed a minor php notice in XMLTagClass::prepare_flags() - Added the ability to set the overall alignment for the DefaultGUIDataList object with set_align() - - added some code to the ActiveTab to enable going to a + - added some code to the ActiveTab to enable going to a specific tab when coming from another page - Added the ability to preselect a specific tab in the ActiveTab - widget by passing the selected tab's name in the constructor + widget by passing the selected tab's name in the constructor - fixed the count issue with the ADODBSQLDataListSource - Made the urls in the DataList object W3C happy. & -> & - fixed potential content issues with InfoTable. Now you can call add_row() with a TR or TD tag. - + ++ MAJOR cleanup of all class member variables in ContainerClass, XMLTagClass and HTMLTagClass. I nuked ALL of the flag variables and made them all into 1 bitmask. 13 variables -> 1. This should keep the memory footprint to a minimum. There should be NO compatibility issues. - + ++ Added the new Form Processing classes, for easily building complex forms and automagic validation, as well as automagic confirmation. -Version 2.1.3 - Walt A. Boring IV +Version 2.1.3 - November 25, 2002 - fixed a duplicated method in ActiveTab. -Version 2.1.2 - Walt A. Boring IV +Version 2.1.2 - November 23, 2002 - fixed a problem with html_map(), it was returning a LEGENDtag. - added $width to ActiveTab::add_tab() so you can change the width of the tab for long titles. - - Fixed my mistake with the add/push_reference() methods. + - Fixed my mistake with the add/push_reference() methods. According to the php spec, you have to declare the parameter - as a reference in the function declaration now, which is + as a reference in the function declaration now, which is counter-intuitive (for us C folks) - Fixed a problem with the XMLDocumentClass' add_reference() method. -Version 2.1.1 - Walt A. Boring IV +Version 2.1.1 - November 12, 2002 - Suren Fixed a bad bug in HTMLPageClass::add_head_content() - -Version 2.1.0 - Walt A. Boring IV + +Version 2.1.0 - November 12, 2002 - Added the ActiveTab widget - fixed a problem with the DefaultGUIDataList object comparing the old style tag name of TD. all tags are now lowercase @@ -72,7 +333,7 @@ some legacy code living in the HTMLTagClass methods that was now living in the XMLTagClass methods - changed DOCTYPEtag to an XMLTag child - - cleaned up the constructor for the DOCTYPEtag and XMLtag + - cleaned up the constructor for the DOCTYPEtag and XMLtag + Did some minor tweaks here and there in the base classes for performance improvements thanks to the adp profiler tool (http://pear.php.net/package-info.php?pacid=118) @@ -80,7 +341,7 @@ DOCTYPE tag + added build_doctype() for the HTMLPageClass, so you can modify the DOCTYPE attributes for the document before render() is called. - This is good for folks that want to tweak the link1 and link2 + This is good for folks that want to tweak the link1 and link2 attributes to put mozilla/IE into standards compliant mode. SEE: http://mozilla.org/docs/web-developer/quirks/doctypes.html @@ -105,16 +366,15 @@ Graphics) tags. + Added the svg_utils.inc which contains the helper functions for constructing commonly used SVG tags with some help from Charlie Killian. - - - -Version 2.0.1 - Walt A. Boring IV + + +Version 2.0.1 - October 18, 2002 - Fixed a problem with html_small() - got the max_rows functionality working in the DataList widget -Version 2.0.0 - Walt A. Boring IV +Version 2.0.0 - October 16, 2002 - Added the title attribute to both html_img_href() and html_img() - created a css dir to hold the css files @@ -122,36 +382,36 @@ up to 2.x standards (add() instead of push() ) - Added the new DataList object widget set. -Version 2.0.0-RC1 - Walt A. Boring IV +Version 2.0.0-RC1 - October 2,2002 MAJOR CHANGES/FEATURES - - Completely rewrote the base HTMLTagClass. It is now + - Completely rewrote the base HTMLTagClass. It is now based off of XMLTagClass which is a child of the Container class (formerly known as ContainerWidget ) - + - Changed all push_reference() calls to require a reference to - be passed in. call time pass by reference is depricated, and - is going away soon, so this had to get changed. - + be passed in. call time pass by reference is depricated, and + is going away soon, so this had to get changed. + - Removed 2nd and 3rd parameter declarations from the HTMLTagClass constructor. It now accepts any number of arguments. The first argument is always an array of the tag attributes. - + - Added a lot of missing html_* helper/wrapper functions. Some of which have special parameters for most commonly used features of the specific tag. - - - changed html_td() parameters. It now accepts + + - changed html_td() parameters. It now accepts function html_td($class="", $align=""). 3rd param to n is content for the tag. - added class as the first param to the html_div() function. - + - Added add() and add_reference() calls. These replace the old style push() and push_reference() calls. All push(), push_reference() and push_row() calls are - depricated. - + depricated. + - Completely changed the css functionality in the widgets. The widgets now contain the css required for the widget @@ -159,10 +419,10 @@ from a widget, if it is based off of the BaseWidget class - Added the ability to tell the PageWidget and HTMLPageClass - the style of indenting of the html output you want. + the style of indenting of the html output you want. Nice or left justified. - - + + MINOR CHANGES/FEATURES - changed all tag declarations to lower case. HTML 4.01 spec recommends using lower case tags. @@ -180,20 +440,20 @@ - Added html_* functions for all the supported Tag Classes. - removed the html_nobr(), since this really isn't a valid w3c tag. If you HAVE to use it...don't. It's DEPRICATED. - - removed SPACERtag. its not a real tag. + - removed SPACERtag. its not a real tag. - cleaned out almost all the comments in the ALLTAGS.inc file for a small speed up. - Added font_utils.inc which holds various span/div tag objects with css classes for fonts, which are defeined in - css/fonts.css + css/fonts.css - Added title parameter to the NavTable widget->add(), and made the target param last. - Moved the widget css files to /css - - - -Version 1.1.0 - Walt A. Boring IV + + + +Version 1.1.0 - May 7, 2002 - Removed <> symbols from the $_tag variables since it is not a part of an HTML tag. This should reduce the usage of str_replace() in render() functions and make things a little bit faster. @@ -209,15 +469,15 @@ HTMLPageClass::set_html_attributes(), which lets the user of the class get/set the specific attributes to use for the tag. - + NOTE: - Moved all files from .php to .inc. make sure you change - you includes to reflect this change. + you includes to reflect this change. -Version 1.0.3 - Walt A. Boring IV - - Fixed a potential formatting issue w/ tags that don't - automatically newline after the opentag. thanks to the +Version 1.0.3 - April 8, 2002 + - Fixed a potential formatting issue w/ tags that don't + automatically newline after the opentag. thanks to the Zend debugger. - Added misc_utils.php which holds new push_args() function. - set newline_after_opentag for OPTIONtag to FALSE by default. @@ -228,30 +488,30 @@ - Fixed a small problem with NavTable widget. If there was no subtitle, it would render an empty table for the title, causing old Mozilla's to puke. - - Changed the size of the TextNav text to 10pt instead of 8pt. + - Changed the size of the TextNav text to 10pt instead of 8pt. - Added FRAMEtag, FRAMESETtag, NOFRAMEStag classes. - Added support in HTMLPageClass widget for framesets. - Added some frame* utility functions. - Combined all of the tag_classes files into 1 file to avoid lots of repetetive includes. - - Added the new ContainerWidget, which is nothing but a + - Added the new ContainerWidget, which is nothing but a wrapper object that contains tags/widgets, and knows how to render the content with the appropriate indentation level. - - added the feature of automatically trying to collapse a + - added the feature of automatically trying to collapse a tag and its content to 1 line. This happens if a tag only has 1 content entry and its a string w/o a \n in it. - Added new html_input() wrapper function which automatically - will call htmlspecialchars() on the data for the value - attribute. This helps prevent problems with + will call htmlspecialchars() on the data for the value + attribute. This helps prevent problems with -> - - Fixed a problem with the form_select() helper function. + - Fixed a problem with the form_select() helper function. The selected item wasn't working. - Added container(), which is a helper function to build a ContainerWidget and populate it. -Version 1.0.2 - Walt A. Boring IV +Version 1.0.2 - November 30,2001 - added 3rd parameter to the HTMLTagClass constructor. It accepts the $newline_after_opentag setting. This helps to keep the nice formatting on certain tags that you want @@ -263,7 +523,7 @@ - added target param for the html_a() helper function. - changed the default parameters to html_img_href, and html_img. We were forcing the width and height of an image - to 1x1 if nothing was passed in. We now don't add them to + to 1x1 if nothing was passed in. We now don't add them to the tags if they aren't set, which is the desired result. - Changed the FooterNav class to add the ability to show a @@ -281,23 +541,23 @@ - Added TODO file. - Added a new feature to automatically htmlentities() for tag attribute values if we are rendering in XHTML_STRICT - mode. This prevents the w3c validator from complaining + mode. This prevents the w3c validator from complaining about the & char. -Version 1.0.1 - Walt A. Boring IV +Version 1.0.1 - August 25, 2001 - added html_div(), and html_td() - added html_div(), and html_td() - - fixed w3c validation bug for the TextNav class. + - fixed w3c validation bug for the TextNav class. We can't put a background image in a td. It Has to be in a css. - - Fixed a issue for a blank entry in the - NavTable class. + - Fixed a issue for a blank entry in the + NavTable class. - reorganized html_utils.php so the functions are in alphabetical order. Should be easier to find them - as a reference. + as a reference. - added usemap attribute support to html_img() and html_img_href() - updated the online API docs (javadoc output) in the - doc directory. - + doc directory. +