Revision 2.0.236

Changelog

Revision: 236
Author: jschneiderameos
Date: 20:18:47, dimanche 10 août 2008

Message:
rdt_box/api/class.tx_rdtbox.php:
  -> new method setHtml($sHtml)

api/class.mainrenderlet.php:
  -> _getEventsArray(): now considers a new kind of event, the js-event; runat="js"

api/class.tx_ameosformidable.php:
  -> added persistence for ajax codebehind-objects
  -> _callCodeBehind(): now requires as an argument the type of codebehind that is to be executed (php, js, ts); new signature is: &_callCodeBehind($sCBRef, $sType, $aParams = array())
----
Modified : /trunk/api/base/rdt_box/api/class.tx_rdtbox.php
Modified : /trunk/api/class.mainrenderlet.php
Modified : /trunk/api/class.tx_ameosformidable.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt


Revision: 235
Author: jschneiderameos
Date: 23:59:27, vendredi 8 août 2008

Message:
rdt_checksingle/res/js/checksingle.js:
  -> added isChecked() method; returns TRUE if checkbox is checked, FALSE otherwise

rdt_lister/api/class.tx_rdtlister.php:
  -> added getCurRowNum() method; returns currently processed row index, starting from 0; FALSE if n/a

api/class.tx_ameosformidable.php:
  -> reference to code behind can now be expressed using EXT:... path
----
Modified : /trunk/api/base/rdt_checksingle/res/js/checksingle.js
Modified : /trunk/api/base/rdt_lister/api/class.tx_rdtlister.php
Modified : /trunk/api/class.tx_ameosformidable.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt


Revision: 234
Author: jschneiderameos
Date: 15:45:53, vendredi 8 août 2008

Message:
api/class.tx_ameosformidable.php:
  -> added template channels urlencode(), rawurlencode() and trim()
----
Modified : /trunk/api/class.tx_ameosformidable.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt


Revision: 233
Author: jschneiderameos
Date: 10:09:53, vendredi 27 juin 2008

Message:
rdt_searchform/api/class.tx_rdtsearchform.php:
  -> clearFilters(): criterias are set to FALSE, not to array() anymore
----
Modified : /trunk/api/base/rdt_searchform/api/class.tx_rdtsearchform.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt


Revision: 232

Author: jschneiderameos
Date: 10:55:44, mardi 3 juin 2008

Message:
All:
  -> moved the server-event fetching mecanism before the "before-render" checkpoint, to have a chance to alter anything before the HTML is rendered
----
Modified : /trunk/api/class.mainrenderer.php
Modified : /trunk/api/class.mainrenderlet.php
Modified : /trunk/api/class.tx_ameosformidable.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt


Revision: 231
Author: jschneiderameos
Date: 17:58:49, dimanche 1 juin 2008

Message:
api/class.tx_ameosformidable.php:
  -> added function array_insert($arr1, $key, $arr2, $before = FALSE); inserts $arr2 before or after $key in $arr1, depending on $before; if $key doesn't exist, inserts at end of $arr1
  -> additionalHeaderData(): added parameters $sBefore and $sAfter; if one given, additionalHeaderData will try to insert the header data before of after the given key in the header array. Makes it easier to inject script inclusion at the right place in the array.

api/class.mainrenderlet.php:
  -> renderlets on client side have now given their localname given in the config array
  -> added method addCssClass($sClassName), allowing to add a css class in the renderlet at render time

rdt_accordion:
  -> added rdt_accordion, based on the nice Accordion v2.0 from stickmanlabs; MIT style licence; see www.stickmanlabs.com/accordion/
----
Added : /trunk/api/base/rdt_accordion
Added : /trunk/api/base/rdt_accordion/api
Added : /trunk/api/base/rdt_accordion/api/class.tx_rdtaccordion.php
Added : /trunk/api/base/rdt_accordion/res
Added : /trunk/api/base/rdt_accordion/res/js
Added : /trunk/api/base/rdt_accordion/res/js/accordion-fixed.js
Added : /trunk/api/base/rdt_accordion/res/js/rdt_accordion.js
Modified : /trunk/api/base/rdt_swfupload/res/js/rdt_swfupload.js
Modified : /trunk/api/class.jslayer.php
Modified : /trunk/api/class.mainrenderlet.php
Modified : /trunk/api/class.tx_ameosformidable.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_localconf.php
Modified : /trunk/ext_typoscript_setup.txt


Revision: 230
Author: jschneiderameos
Date: 21:37:40, vendredi 30 mai 2008

Message:
Removed deprecated stuff.
See support.typo3.org/projects/formidable/m/typo3-project-formidable-open-talk-deprecation-list-for-branch-2-345036/p/13/
----
Deleted : /trunk/api/base/dh_dbmm
Deleted : /trunk/api/base/rdt_ajaxlist
Deleted : /trunk/api/base/rdt_blank
Deleted : /trunk/api/base/rdt_dummy
Deleted : /trunk/api/base/rdt_flexpload
Deleted : /trunk/api/base/rdt_lbl
Deleted : /trunk/api/base/rdt_tree
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_localconf.php
Modified : /trunk/ext_typoscript_setup.txt


Revision: 229

Author: jschneiderameos
Date: 22:25:31, mercredi 28 mai 2008

Message:
api/class.tx_ameosformidable.php:
  -> created method initCodeBehinds(), initializing the codeBehinds declared in /meta
  -> _processServerEvents(): now executes codeBehinds also
  -> mayday() is now able to provide speaking error messages even in ajax context
  -> _callCodeBehind(): added useful maydays() on some error checks; now takes params as second argument, and stack'em using pushUserObjParam() and pullUserObjParam()
  -> handleAjaxRequest() is now able to execute codeBehinds
  -> unHibernate(): calls initCodeBehinds() on load
----
Modified : /trunk/api/class.tx_ameosformidable.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt


Revision: 228
Author: jschneiderameos
Date: 22:09:09, mardi 27 mai 2008

Message:
rdt_lister/api/class.tx_rdtlister.php:
  -> added inline mode on lister; mode="inline"

api/class.maindatahandler.php:
  -> added stacking on listdata for recursivity

api/class.mainrenderlet.php:
  -> added method getIteratingAncestor(); returns the first lister iterating in renderlet's ancestors line

api/class.tx_ameosformidable.php:
  -> added template method strftime(); similar to php.net/strftime
  -> _makeRenderlet() now returns a reference rather than a copy, which was a bug

res/jsfwk/framework.js:
  -> Fx(): corrected weird bug with typeof().toLowerCase()

----
Modified : /trunk/api/base/rdt_lister/api/class.tx_rdtlister.php
Modified : /trunk/api/base/rdt_modalbox/res/js/modalbox.js
Modified : /trunk/api/class.maindatahandler.php
Modified : /trunk/api/class.mainrenderlet.php
Modified : /trunk/api/class.tx_ameosformidable.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt
Modified : /trunk/res/jsfwk/framework.js


Revision: 227
Author: jschneiderameos
Date: 00:12:56, lundi 26 mai 2008

Message:
rdt_lister/api/class.tx_rdtlister.php:
  -> improved the list data stacking mecanism; now lister recursivity should work fine

rdt_lister/res/js/lister.js:
  -> created a Row Object for the lister

api/class.tx_ameosformidable.php:
  -> implemented codeBehind feature

res/jsfwk/framework.js:
  -> implemented getSender() inside js events
----
Modified : /trunk/api/base/rdt_lister/api/class.tx_rdtlister.php
Modified : /trunk/api/base/rdt_lister/res/js/lister.js
Modified : /trunk/api/class.jslayer.php
Modified : /trunk/api/class.maindatahandler.php
Modified : /trunk/api/class.mainrenderlet.php
Modified : /trunk/api/class.tx_ameosformidable.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt
Modified : /trunk/res/jsfwk/framework.js


Revision: 226

Author: jschneiderameos
Date: 22:11:33, vendredi 23 mai 2008

Message:
dh_std/api/class.tx_dhstd.php:
  -> corrected call to deprecated _getFormDataManaged()
----
Modified : /trunk/api/base/dh_std/api/class.tx_dhstd.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt


Revision: 225
Author: mrego
Date: 18:21:34, vendredi 23 mai 2008

Message:
Restructuring SVN repository: tag formidable-1.1 is created
----
Added : /tags/formidable-1.1(Copy from path: /, Revision, 185


Revision: 224
Author: mrego
Date: 18:19:38, vendredi 23 mai 2008

Message:
Restructuring SVN repository: tag formidable-1.0 is created
----
Added : /tags/formidable-1.0(Copy from path: /, Revision, 172


Revision: 223

Author: mrego
Date: 18:18:31, vendredi 23 mai 2008

Message:
Restructuring SVN repository: tag formidable-0.7 is created
----
Added : /tags/formidable-0.7(Copy from path: /, Revision, 1


Revision: 222

Author: mrego
Date: 18:01:46, vendredi 23 mai 2008

Message:
Restructuring SVN repository: branch formidable-1.1 is created
----
Added : /branches/formidable-1.1(Copy from path: /, Revision, 185


Revision: 221
Author: mrego
Date: 17:50:54, vendredi 23 mai 2008

Message:
Restructuring SVN repository: tags folder is created to trunk
----
Added : /tags


Revision: 220
Author: mrego
Date: 17:49:35, vendredi 23 mai 2008

Message:
Restructuring SVN repository: branches folder is created
----
Added : /branches


Revision: 219

Author: mrego
Date: 17:38:08, vendredi 23 mai 2008

Message:
Restructuring SVN repository: xsd folder is moved to trunk
----
Added : /trunk/xsd(Copy from path: /xsd, Revision, 218
Deleted : /xsd


Revision: 218
Author: mrego
Date: 17:37:36, vendredi 23 mai 2008

Message:
Restructuring SVN repository: xml.gif file is moved to trunk
----
Added : /trunk/xml.gif(Copy from path: /xml.gif, Revision, 217
Deleted : /xml.gif


Revision: 217
Author: mrego
Date: 17:37:01, vendredi 23 mai 2008

Message:
Restructuring SVN repository: res folder is moved to trunk
----
Deleted : /res
Added : /trunk/res(Copy from path: /res, Revision, 216


Revision: 216
Author: mrego
Date: 17:36:26, vendredi 23 mai 2008

Message:
Restructuring SVN repository: remote folder is moved to trunk
----
Deleted : /remote
Added : /trunk/remote(Copy from path: /remote, Revision, 215


Revision: 215
Author: mrego
Date: 17:34:56, vendredi 23 mai 2008

Message:
Restructuring SVN repository: pi2 folder is moved to trunk
----
Deleted : /pi2
Added : /trunk/pi2(Copy from path: /pi2, Revision, 214


Revision: 214
Author: mrego
Date: 17:34:23, vendredi 23 mai 2008

Message:
Restructuring SVN repository: pi1 folder is moved to trunk
----
Deleted : /pi1
Added : /trunk/pi1(Copy from path: /pi1, Revision, 213


Revision: 213
Author: mrego
Date: 17:33:44, vendredi 23 mai 2008

Message:
Restructuring SVN repository: licence.txt file is moved to trunk
----
Deleted : /licence.txt
Added : /trunk/licence.txt(Copy from path: /licence.txt, Revision, 212


Revision: 212
Author: mrego
Date: 17:33:04, vendredi 23 mai 2008

Message:
Restructuring SVN repository: ext_typoscript_setup.txt file is moved to trunk
----
Deleted : /ext_typoscript_setup.txt
Added : /trunk/ext_typoscript_setup.txt(Copy from path: /ext_typoscript_setup.txt, Revision, 211


Revision: 211

Author: mrego
Date: 17:32:21, vendredi 23 mai 2008

Message:
Restructuring SVN repository: ext_tables.php file is moved to trunk
----
Deleted : /ext_tables.php
Added : /trunk/ext_tables.php(Copy from path: /ext_tables.php, Revision, 210


Revision: 210
Author: mrego
Date: 17:31:44, vendredi 23 mai 2008

Message:
Restructuring SVN repository: ext_localconf.php file is moved to trunk
----
Deleted : /ext_localconf.php
Added : /trunk/ext_localconf.php(Copy from path: /ext_localconf.php, Revision, 209


Revision: 209
Author: mrego
Date: 17:31:05, vendredi 23 mai 2008

Message:
Restructuring SVN repository: ext_icon.gif file is moved to trunk
----
Deleted : /ext_icon.gif
Added : /trunk/ext_icon.gif(Copy from path: /ext_icon.gif, Revision, 208


Revision: 208
Author: mrego
Date: 17:29:42, vendredi 23 mai 2008

Message:

Restructuring SVN repository: ext_emconf.php file is moved to trunk

----
Deleted : /ext_emconf.php
Added : /trunk/ext_emconf.php(Copy from path: /ext_emconf.php, Revision, 207


Revision: 207
Author: mrego
Date: 17:28:50, vendredi 23 mai 2008

Message:
Restructuring SVN repository: doc folder is moved to trunk
----
Deleted : /doc
Added : /trunk/doc(Copy from path: /doc, Revision, 206


Revision: 206
Author: mrego
Date: 17:27:57, vendredi 23 mai 2008

Message:

Restructuring SVN repository: changelog.txt file is moved to trunk

----
Deleted : /changelog.txt
Added : /trunk/changelog.txt(Copy from path: /changelog.txt, Revision, 205


Revision: 205

Author: mrego
Date: 17:27:04, vendredi 23 mai 2008

Message:

Restructuring SVN repository: api folder is moved to trunk

----
Deleted : /api
Added : /trunk/api(Copy from path: /api, Revision, 204


Revision: 204
Author: mrego
Date: 17:24:39, vendredi 23 mai 2008

Message:

Restructuring SVN repository: trunk folder is created

----
Added : /trunk


Revision: 203
Author: jschneiderameos
Date: 23:53:19, jeudi 22 mai 2008

Message:
replaced die("deprecated"); with nice maydays and callstack
----
Modified : /api/class.maindatahandler.php
Modified : /api/class.mainrenderlet.php
Modified : /ext_emconf.php
Modified : /ext_typoscript_setup.txt


Revision: 202

Author: jschneiderameos
Date: 23:43:26, jeudi 22 mai 2008

Message:
dh_db/api/class.tx_dhdb.php:
  -> call for new method getDataPreparedForDB() instead of deprecated _getFlatFormDataManaged()

rdr_template/api/class.tx_rdrtemplate.php:
  -> /template/customTags is now deprecated

rdt_hidden/api/class.tx_rdthidden.php:
  -> _activeListable() returns now TRUE
  -> uses dotted HTMLbag structure

rdt_lister/api/class.tx_rdtlister.php:
  -> js-references to columns are now included even if activelistable is false, so that one can access'em thru pure-javascript event

api/class.maindatahandler.php:
  -> getFormDataManaged() and _getFormDataManaged() are deprecated
  -> _getFlatFormData() and _getFlatFormDataManaged() are deprecated
  -> getRdtValue() now holds all the data business logic, including the forcedValue thing
  -> refreshFormData() initializes the data at Formidable's init time

api/class.mainrenderlet.php:
  -> _getValue() is deprecated
  -> getValue() remains and is the only public method to access data on a renderlet; gateway to datahandler->getRdtValue()
----
Modified : /api/base/dh_db/api/class.tx_dhdb.php
Modified : /api/base/rdr_template/api/class.tx_rdrtemplate.php
Modified : /api/base/rdt_hidden/api/class.tx_rdthidden.php
Modified : /api/base/rdt_lister/api/class.tx_rdtlister.php
Modified : /api/base/rdt_upload/api/class.tx_rdtupload.php
Modified : /api/base/va_file/api/class.tx_vafile.php
Modified : /api/class.maindatahandler.php
Modified : /api/class.mainrenderlet.php
Modified : /api/class.tx_ameosformidable.php
Modified : /ext_emconf.php
Modified : /ext_typoscript_setup.txt


Revision: 201
Author: jschneiderameos
Date: 00:01:10, jeudi 22 mai 2008

Message:
UNSTABLE REVISION, ongoing process, please be patient

dh_std/api/class.tx_dhstd.php:
  -> corrected minor bug inroduced in previous revision; one parameter out of two was missing in call to $this->oForm->_debug()

rdt_img/api/class.tx_rdtimg.php:
  -> was completely screwed up, corrected and should work properly now

rdt_upload/api/class.tx_rdtupload.php:
  -> corrected minor bugs in file handling

api/class.maindatahandler.php:
  -> _getFormData(): only top level renderlets are requested inside the method, the childs are requested recursively
  -> data methods now use navDeepData() and setDeepData() on tx_ameosformidable to handle multi-dimensional post array

api/class.mainrenderlet.php:
  -> new method hasParent(), returns boolean, TRUE if the renderlet is a child, FALSE if not
  -> new methods hasBeenSubmitted() and hasBeenDeeplySubmitted(), that respectively check if the rdt was present in the POST array, and if the rdt of one of it's childs were present in the POST array
  -> setValue() now uses setDeepData() on formdata
  -> hasSubmitted() has been modified to use navDeepData()
  -> corrected overall server-event logic

api/class.tx_ameosformidable.php:
  -> new template method alias data.strip_tags() created on former data.striptags(), to be coherent with the php equivalent
  -> new methods navDeepData() an setDeepData()
  -> _makeRenderlet(): added calculation of bHasBeenSubmitted on renderlet
----
Modified : /api/base/dh_db/api/class.tx_dhdb.php
Modified : /api/base/dh_std/api/class.tx_dhstd.php
Modified : /api/base/rdt_img/api/class.tx_rdtimg.php
Modified : /api/base/rdt_upload/api/class.tx_rdtupload.php
Modified : /api/class.maindatahandler.php
Modified : /api/class.mainrenderlet.php
Modified : /api/class.tx_ameosformidable.php
Modified : /ext_emconf.php
Modified : /ext_typoscript_setup.txt


Revision: 200

Author: jschneiderameos
Date: 23:22:13, mardi 20 mai 2008

Message:
All:
  -> corrected some calls to oDataHandler->_isValid(), passing it absolute renderlet name now; errors are declared and tested against absolute renderlet name

dh_std/api/class.tx_dhstd.php:
  -> minor changes

rdt_searchform/api/class.tx_rdtsearchform.php:
  -> adapted to new data structure

api/class.mainrenderlet.php:
  -> corrected isChildOf() and isDescendantOf() for new data structure
  -> new method isAnonymous(), returns boolean, TRUE if no name has been defined on the renderlet


api/class.tx_ameosformidable.php:
  -> corrected _validateElement(); now using abs name
  -> _makeRenderlets() method: /process is not tested anymore at this stage

Formidable:
  -> celebrating the 200th revision of Formidable !
----
Modified : /api/base/dh_std/api/class.tx_dhstd.php
Modified : /api/base/rdt_file/api/class.tx_rdtfile.php
Modified : /api/base/rdt_searchform/api/class.tx_rdtsearchform.php
Modified : /api/class.maindatahandler.php
Modified : /api/class.mainrenderer.php
Modified : /api/class.mainrenderlet.php
Modified : /api/class.tx_ameosformidable.php
Modified : /ext_emconf.php
Modified : /ext_typoscript_setup.txt


Revision: 199
Author: jschneiderameos
Date: 10:50:30, lundi 19 mai 2008

Message:
api/base/rdt_lister/api/class.tx_rdtlister.php:
  -> corrected bug in _initColumns(); some columns were not correctly referenced in the global collection of renderlets aORenderlets, due to a bug in _refineRow(), where absolute reference to the renderlet was needlesly overwritten in the global collection

api/class.mainrenderer.php:
  -> corrected _getElementCssId() to protect dots in generated css, not "[" or "]" anymore
----
Modified : /api/base/rdt_lister/api/class.tx_rdtlister.php
Modified : /api/class.mainrenderer.php
Modified : /api/class.mainrenderlet.php
Modified : /ext_emconf.php
Modified : /ext_typoscript_setup.txt


Revision: 198
Author: jschneiderameos
Date: 22:09:37, dimanche 18 mai 2008

Message:
UNSTABLE REVISION, work in progress. Please stick to revision 191 for the moment

rdt_lister/api/class.tx_rdtlister.php:
  -> _initColumns() method: added automatic name attribution to anonymous columns, like for renderlets



----
Modified : /api/base/rdt_lister/api/class.tx_rdtlister.php
Modified : /ext_emconf.php
Modified : /ext_typoscript_setup.txt


Revision: 197
Author: jschneiderameos
Date: 21:45:06, dimanche 18 mai 2008

Message:
REVISION TO BE CONSIDERED UNSTABLE. We recommend you to stick to revision 191 for the moment, as a lot of work is still in progress

rdt_submit/api/class.tx_rdtsubmit.php:
  -> adapted to restore unobtrusive server event feature on submit button

api/class.mainrenderer.php:
  -> adapted to work with absolute renderlet names

api/class.mainrenderlet.php:
  -> added _getElementHtmlNameWithoutFormId(): used only in renderlet:SUBMIT for unobtrusive server event, as the addPostVar mecanism asks for HTML names relative to formid, and not absolute HTML names
  -> server event detection has been moved to _getEventsArray(), ie way later than before, and this because we need to build the absolute name for the renderlet to generate the server event. As a consequence, server events won't be able to be triggered anymore before the after-render checkpoint. This has to be improved in upcoming releases

api/class.tx_ameosformidable.php:
  -> _processServerEvents() has been adapted to work with new POST data structure using the Absolute name to absolute path trick (absname => replace-dots-by-slashes => abspath => navConf on abspath + formdata)
  -> _grabServerAndAjaxEvents() method has been removed, as the work is now done in mainrenderlet->_getEventsArray(), at render-time
----
Modified : /api/base/rdt_submit/api/class.tx_rdtsubmit.php
Modified : /api/class.mainrenderer.php
Modified : /api/class.mainrenderlet.php
Modified : /api/class.tx_ameosformidable.php
Modified : /ext_emconf.php
Modified : /ext_typoscript_setup.txt


Revision: 196
Author: jschneiderameos
Date: 18:04:37, dimanche 18 mai 2008

Message:
UNSTABLE REVISION, please do not use, a lot of work in progress

rdr_template/api/class.tx_rdrtemplate.php:
  -> new property /html/errortag, string+userobj, default "", adding the possibility to declare an errortag when using renderer:TEMPLATE with the /html property (meaning by giving the HTML of the template directly in the XML, not by pointing an external file)

rdt_upload/api/class.tx_rdtupload.php:
  -> adapted to new internal data structure

va_captcha/api/class.tx_vacaptcha.php:
va_db/api/class.tx_vadb.php:
va_file/api/class.tx_vafile.php:
va_num/api/class.tx_vanum.php:
va_preg/api/class.tx_vapreg.php:
api/class.mainvalidator.php:
  -> adapted to new internal data structure

api/class.maindatahandler.php:
  -> added method groupFileInfoByVariable(); reformats the _FILE array to be handled easylier by Formidable; used in the _F() method


----
Modified : /api/base/rdr_template/api/class.tx_rdrtemplate.php
Modified : /api/base/rdt_checkbox/api/class.tx_rdtcheckbox.php
Modified : /api/base/rdt_date/api/class.tx_rdtdate.php
Modified : /api/base/rdt_file/api/class.tx_rdtfile.php
Modified : /api/base/rdt_listbox/api/class.tx_rdtlistbox.php
Modified : /api/base/rdt_upload/api/class.tx_rdtupload.php
Modified : /api/base/va_captcha/api/class.tx_vacaptcha.php
Modified : /api/base/va_db/api/class.tx_vadb.php
Modified : /api/base/va_file/api/class.tx_vafile.php
Modified : /api/base/va_num/api/class.tx_vanum.php
Modified : /api/base/va_preg/api/class.tx_vapreg.php
Modified : /api/class.maindatahandler.php
Modified : /api/class.mainrenderlet.php
Modified : /api/class.mainvalidator.php
Modified : /ext_emconf.php
Modified : /ext_typoscript_setup.txt


Revision: 195

Author: jschneiderameos
Date: 10:28:36, dimanche 18 mai 2008

Message:
All renderlets:
  -> current value for renderlet is now get thru call to $this->getValue()

api/class.tx_ameosformidable.php:
  -> new method useNewDataStructure(), returns BOOLEAN, default FALSE; defines wether or not to use new data-features of Formidable; controlled by /meta/useNewDataStructure

api/class.maindatahandler.php:
  -> _getFlatFormDataManaged() has been modified to store data under renderlet's absolute name if /meta/useNewDataStructure=true; if false, will work as usual
  -> getRdtValue_submit_edition() has been modified to lookup recursively into the newly structured data array with _navConf()
  -> getRdtValue_noSubmit_edit() has been modified to lookup in stored data on absolute name if /meta/useNewDataStructure=true

api/class.mainrenderer.php:
  -> removed _getHtmlId(), not used anymore
  -> removed _getHtmlName(), not used anymore
----
Modified : /api/base/rdt_box/api/class.tx_rdtbox.php
Modified : /api/base/rdt_captcha/api/class.tx_rdtcaptcha.php
Modified : /api/base/rdt_checksingle/api/class.tx_rdtchecksingle.php
Modified : /api/base/rdt_chooser/api/class.tx_rdtchooser.php
Modified : /api/base/rdt_dewplayer/api/class.tx_rdtdewplayer.php
Modified : /api/base/rdt_flexpload/api/class.tx_rdtflexpload.php
Modified : /api/base/rdt_hidden/api/class.tx_rdthidden.php
Modified : /api/base/rdt_img/api/class.tx_rdtimg.php
Modified : /api/base/rdt_lbl/api/class.tx_rdtlbl.php
Modified : /api/base/rdt_link/api/class.tx_rdtlink.php
Modified : /api/base/rdt_listbox/api/class.tx_rdtlistbox.php
Modified : /api/base/rdt_pwd/api/class.tx_rdtpwd.php
Modified : /api/base/rdt_radio/api/class.tx_rdtradio.php
Modified : /api/base/rdt_searchform/api/class.tx_rdtsearchform.php
Modified : /api/base/rdt_selector/api/class.tx_rdtselector.php
Modified : /api/base/rdt_swfupload/api/class.tx_rdtswfupload.php
Modified : /api/base/rdt_text/api/class.tx_rdttext.php
Modified : /api/base/rdt_tinymce/api/class.tx_rdttinymce.php
Modified : /api/base/rdt_tree/api/class.tx_rdttree.php
Modified : /api/base/rdt_txtarea/api/class.tx_rdttxtarea.php
Modified : /api/base/rdt_upload/api/class.tx_rdtupload.php
Modified : /api/base/rdt_url/api/class.tx_rdturl.php
Modified : /api/class.maindatahandler.php
Modified : /api/class.mainrenderer.php
Modified : /api/class.mainrenderlet.php
Modified : /api/class.tx_ameosformidable.php
Modified : /ext_emconf.php
Modified : /ext_typoscript_setup.txt


Revision: 194
Author: jschneiderameos
Date: 22:10:12, vendredi 16 mai 2008

Message:
All:
  -> revision to be considered HIGHLY UNSTABLE, do not use, lot of refactoring is still in intermediate state
  -> pursuing deep modifications of the internal data-structure of Formidable
  -> concept of renderlet's name has evolved

Now the name defined in the XML is what you get thru renderlet->getName(), so it's equivalent to renderlet->_getNameWithoutPrefix()
The HTML name will be returned by renderlet->_getElementHtmlName(), and will be like myformid[myrdtname][mychild]; For lists, html name will be like myformid[mylist][6][mychild], where 6 is the uid of the current row; HTML name will only be used in the browser context
The HTML id will be returned by renderlet->_getElementHtmlId(), and will be like myformid.myrdtname.mychild; for lists, the html id will be like myformid.mylist.6.mychild, where 6 is the uid of the current row; HTML id will only be used in the browser context

NEW: renderlets will be handled in Formidable's internal memory by their absolute name, meaning: their path from the root inside the renderlets structure of the application
this absolute name will be returned by renderlet->getAbsName(). Will be something like: mybox.subbox-header.btncreate

NOTE: renderlet names won't be able to contain "." the dot character anymore

In local child-array on each renderlet containing childs, child-renderlets will be accessed by their relative name

rdt_lister/api/class.tx_rdtlister.php:
  -> mayHaveChilds() now returns true for the lister
  -> columns initialization has been moved earlier in the process, inside the standard initChilds() method available on each renderlet

rdt_text/api/class.tx_rdttext.php:
  -> uses the absolute name of the renderlet to get data from the datahandler by getThisFormData(); all renderlets will behave the same in the future
  -> corrected the htmlbag array returned by passign value.nl2br in a dotted array
  -> added value.raw template channel, as requested by Ian Solo, to have access to un-htmlspecialchar'd value

api/class.maindatahandler.php:
  -> new method isIterating(), returning TRUE if a lister is iterating thru data when asked, FALSE if not
  -> _getThisFormData(): now takes absolute name as a parameter; don't cache results when the lister is iterating thru data

api/class.mainrenderer.php:
  -> _getClientEvent(): now takes renderlet's HTML id as first parameter, not name anymore

api/class.mainrenderlet.php:
  -> wrapForReadOnly(): does not append _readonly anymore to the HTMLid in the generated span

----
Modified : /api/base/rdt_lister/api/class.tx_rdtlister.php
Modified : /api/base/rdt_text/api/class.tx_rdttext.php
Modified : /api/class.maindatahandler.php
Modified : /api/class.mainobject.php
Modified : /api/class.mainrenderer.php
Modified : /api/class.mainrenderlet.php
Modified : /api/class.tx_ameosformidable.php
Modified : /ext_emconf.php
Modified : /ext_typoscript_setup.txt
Modified : /res/jsfwk/framework.js


Revision: 193

Author: jschneiderameos
Date: 11:47:21, vendredi 16 mai 2008

Message:
All:
  -> revision to be considered HIGHLY UNSTABLE, do not use, lot of refactoring is still in intermediate state
  -> pursuing deep modifications of the internal data-structure of Formidable


api/base/rdr_template/api/class.tx_rdrtemplate.php:
  -> corrected the errors tag generation

rdt_lister/api/class.tx_rdtlister.php:
rdt_lister/res/js/lister.js:
  -> the LISTER now has it's own majix class, allowing new features like js-level list management

rdt_lister/res/js/lister.js:
  -> new method getRow(iRowUid): returns an object containing references to renderlets available in the current row
  -> new method getCurrentRow(): returns the row object containing the renderlet that thrown the event (if any); thanks to newly implemented "context" on events

api/class.mainvalidator.php:
va_db/api/class.tx_vadb.php:
  -> corrected to work with long renderlet names

api/class.maindatahandler.php:
  -> _getFlatFormDataManaged(): corrected to work with long renderlet names

api/class.mainrenderlet.php:
  -> render(): javascript for renderlet is now included also for readonly states
  -> includeScripts(): if renderlet has childs, their ids are given to the js object at init time

api/class.tx_ameosformidable.php:
  -> defined new constant AMEOSFORMIDABLE_NESTED_SEPARATOR, defining the string that will be used as a separator between prefixes in long renderlet names
  -> moved checkpoint after-render a bit upper in the process, closer to the real render end
  -> added checkpoints before-js-inclusion and after-js-inclusion; useful to modify the generated js before inclusion by the framework
  -> methods _validateElement() and _validateElements(): modified the validation logic; now validators take reference to the renderlet as an argument, and not a copy of it's configuration anymore, wich allow much more efficiency in the validation process
  -> _callUserObj(): new property /params; js userobj can now take parameters, that will be accessible in the javascript thru call to this.getParams(); /params has to return a php array
  -> majixExecJs(): modified to allow context-related informations to be passed to the event (typicaly the current row uid if renderlet is in a LISTER)
  -> buildMajixExecuter(): added a fourth optional parameter $mDataBag, containing parameters and context passed to the event

ext_typoscript_setup.txt:
  -> disabled minified framework.js for this revision, tests purposes

----
Modified : /api/base/dh_db/api/class.tx_dhdb.php
Modified : /api/base/rdr_template/api/class.tx_rdrtemplate.php
Modified : /api/base/rdt_lister/api/class.tx_rdtlister.php
Added : /api/base/rdt_lister/res/js
Added : /api/base/rdt_lister/res/js/lister.js
Modified : /api/base/va_db/api/class.tx_vadb.php
Modified : /api/class.maindatahandler.php
Modified : /api/class.mainrenderlet.php
Modified : /api/class.mainvalidator.php
Modified : /api/class.tx_ameosformidable.php
Modified : /ext_emconf.php
Modified : /ext_typoscript_setup.txt
Modified : /res/jsfwk/framework.js


Revision: 192
Author: jschneiderameos
Date: 10:53:05, jeudi 15 mai 2008

Message:
All:
  -> started modifying the way renderlets are stored and accessed in Formidable internal memory. The goal is to be able to navigate thru the renderlets Data structure as in a Tree reflecting the XML structure.

api/class.mainrenderlet.php:
  -> to be more efficient, renderlet js is now generated during the render(), and not while getting additional parameters dor the renderlet anymore. Possible side effect on inlined events ?

res/jsfwk/framework.js:
  -> getParamsForMajix(): argument is not included in the returned array anymore, as it contained huge amounts of pointless data. Usefull parameters only will be fetched instead.
----
Modified : /api/base/dh_lister/api/class.tx_dhlister.php
Modified : /api/base/rdr_template/api/class.tx_rdrtemplate.php
Modified : /api/base/rdt_ajaxlist/api/class.tx_rdtajaxlist.php
Modified : /api/base/rdt_i18n/api/class.tx_rdti18n.php
Modified : /api/base/rdt_lister/api/class.tx_rdtlister.php
Modified : /api/base/rdt_selector/api/class.tx_rdtselector.php
Modified : /api/base/rdt_swfupload/api/class.tx_rdtswfupload.php
Modified : /api/class.mainobject.php
Modified : /api/class.mainrenderer.php
Modified : /api/class.mainrenderlet.php
Modified : /api/class.tx_ameosformidable.php
Modified : /ext_emconf.php
Modified : /ext_typoscript_setup.txt
Modified : /remote/formidableajax.php
Modified : /res/jsfwk/framework.js
Modified : /res/jsfwk/minified/formidable.minified.js
Modified : /res/jsfwk/minified/formidable.minified.js.gz