Revision 2.0.266

Changelog

Revision: 266
Author: jschneiderameos
Date: 00:10:40, mercredi 29 octobre 2008

Message:
api/class.mainobject.php:
  -> corrected "local" to "relative"
----
Modified : /trunk/api/class.mainobject.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt

 

Revision: 265
Author: jschneiderameos
Date: 00:07:26, mercredi 29 octobre 2008

Message:
All:
  -> implemented relative context for the php userobj's, meaning that now, '$this' in a php userobj can refer to the current renderlet; the default behaviour is however preserved for the moment, ie: '$this' refers to the main Formidable object; to activate relative context on a userobj, you have to define context="relative":

 <userobj>
  <php context="relative"><![CDATA[
   echo "Hello, my name is " . $this->getName();
  ]]></php>
 </userobj>

  -> xpaths in includexml can now be relative; for instance:

<renderlet:LISTER name="mylist">
 <datasource use="pages" />
 <columns>
  <column type="renderlet:BOX" name="title">
   <html>
    <userobj>
     <php context="local"><![CDATA[
 return $this->getValue() . ":" . $this->getName();
     ]]></php>
    </userobj>
   </html>
  </column>
  <column type="renderlet:BOX" name="uid">
   <includeXml xPath="../../columns/column[name=title]/html" />
  </column>
 </columns>
</renderlet:LISTER>
----
Modified : /trunk/api/base/act_redct/api/class.tx_actredct.php
Modified : /trunk/api/base/dh_lister/api/class.tx_dhlister.php
Modified : /trunk/api/base/dh_raw/api/class.tx_dhraw.php
Modified : /trunk/api/base/ds_db/api/class.tx_dsdb.php
Modified : /trunk/api/base/ds_phparray/api/class.tx_dsphparray.php
Modified : /trunk/api/base/rdr_template/api/class.tx_rdrtemplate.php
Modified : /trunk/api/base/rdt_box/api/class.tx_rdtbox.php
Modified : /trunk/api/base/rdt_captcha/api/class.tx_rdtcaptcha.php
Modified : /trunk/api/base/rdt_checkbox/api/class.tx_rdtcheckbox.php
Modified : /trunk/api/base/rdt_chooser/api/class.tx_rdtchooser.php
Modified : /trunk/api/base/rdt_date/api/class.tx_rdtdate.php
Modified : /trunk/api/base/rdt_dewplayer/api/class.tx_rdtdewplayer.php
Modified : /trunk/api/base/rdt_file/api/class.tx_rdtfile.php
Modified : /trunk/api/base/rdt_i18n/api/class.tx_rdti18n.php
Modified : /trunk/api/base/rdt_img/api/class.tx_rdtimg.php
Modified : /trunk/api/base/rdt_link/api/class.tx_rdtlink.php
Modified : /trunk/api/base/rdt_lister/api/class.tx_rdtlister.php
Modified : /trunk/api/base/rdt_radio/api/class.tx_rdtradio.php
Modified : /trunk/api/base/rdt_searchform/api/class.tx_rdtsearchform.php
Modified : /trunk/api/base/rdt_submit/api/class.tx_rdtsubmit.php
Modified : /trunk/api/base/rdt_swfupload/api/class.tx_rdtswfupload.php
Modified : /trunk/api/base/rdt_tinymce/api/class.tx_rdttinymce.php
Modified : /trunk/api/base/rdt_upload/api/class.tx_rdtupload.php
Modified : /trunk/api/class.mainobject.php
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: 264
Author: jschneiderameos
Date: 16:36:18, mardi 28 octobre 2008

Message:
rdt_lister/api/class.tx_rdtlister.php:
  -> without realurl, generated urls had double &id=xyz
----
Modified : /trunk/api/base/rdt_lister/api/class.tx_rdtlister.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt

 

Revision: 263
Author: jschneiderameos
Date: 17:42:06, dimanche 26 octobre 2008

Message:
All:
  -> implemented the possibility to remotely use a searchform, meaning that now one can define a searchform in a page and a plugin, and list data into another page and plugin; see explanations on how to use here: http://formidable.typo3.ug/tutorials/remote-searchform.html


api/class.mainrenderlet.php:
  -> added getNameRelativeTo(&$oRdt) method; returns the name of $this, relatively to $oRdt

api/class.tx_ameosformidable.php:
  -> xPath() method may now break and mayday if given xpath doesn't match anything or is not syntaxically valid
----
Modified : /trunk/api/base/rdt_box/api/class.tx_rdtbox.php
Modified : /trunk/api/base/rdt_searchform/api/class.tx_rdtsearchform.php
Modified : /trunk/api/class.maindatahandler.php
Modified : /trunk/api/class.mainobject.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: 262
Author: jschneiderameos
Date: 21:05:55, vendredi 24 octobre 2008

Message:
api/class.tx_ameosformidable.php:
  -> added methods _getXmlPlain() and div_xml2array_plain()

rdt_box/res/js/box.js
  -> corrected bug in setHtml()
----
Modified : /trunk/api/base/rdt_box/res/js/box.js
Modified : /trunk/api/class.tx_ameosformidable.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt

 

Revision: 260
Author: jschneiderameos
Date: 10:28:55, mercredi 22 octobre 2008

Message:
dh_raw/api/class.tx_dhraw.php:
  -> fixed bug described here, thanks to Martin Claus:
http://support.typo3.org/projects/formidable/m/typo3-project-formidable-datahandlerraw-leads-to-formidablemayday-371121/p/16/
----
Modified : /trunk/api/base/dh_raw/api/class.tx_dhraw.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt

 

Revision: 259
Author: jschneiderameos
Date: 10:10:08, mercredi 22 octobre 2008

Message:
rdt_date/api/class.tx_rdtdate.php:
rdt_date/res/js/date.js:
  -> modifications made to fix this bug:
http://support.typo3.org/projects/formidable/m/typo3-project-formidable-majixreplacedata-on-renderletdate-370431/p/16/
----
Modified : /trunk/api/base/rdt_date/api/class.tx_rdtdate.php
Modified : /trunk/api/base/rdt_date/res/js/date.js
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt

 

Revision: 258
Author: jschneiderameos
Date: 14:44:54, mardi 21 octobre 2008

Message:
api/class.mainrenderlet.php:
  -> added forceValue() and unForceValue(), helpers used by forceValue()

api/class.mainrenderlet.php:
  -> renderChildsBag(): added experimental recursive data propagation in childs if parent's value is an array containg references to childs

api/class.tx_ameosformidable.php:
  -> added parseTemplateMethodArgs() to parse the parameters passed by template methods; extracted from executeTemplateMethod()
  -> added template methods isNotTrue() and isNotFalse()
  -> codeBehind may now define arguments when executing methods; something like: mycb.doSomethingWith('my-data', 'my-other-data')
----
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: 257
Author: jschneiderameos
Date: 13:55:35, lundi 13 octobre 2008

Message:
All:
  -> trimming ajax response to avoid parsing problems with proxies adding a space or a blank line on top of the document (yes, sad but true)
----
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt
Modified : /trunk/res/jsfwk/framework.js
Modified : /trunk/res/jsfwk/minified/formidable.minified.js
Modified : /trunk/res/jsfwk/minified/formidable.minified.js.gz

 

Revision: 256
Author: jschneiderameos
Date: 16:11:38, vendredi 3 octobre 2008

Message:
Corrected bug induced by rev 245 in res/jsfwkb/framework.js
----
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt
Modified : /trunk/res/jsfwk/framework.js
Modified : /trunk/res/jsfwk/minified/formidable.minified.js
Modified : /trunk/res/jsfwk/minified/formidable.minified.js.gz

 

Revision: 255
Author: jschneiderameos
Date: 15:33:00, vendredi 3 octobre 2008

Message:
All:
  -> corrected problems with events attach on checkbox and radiobutton; event observation is now handled by the renderlet object itself, nor more by the Formidable main class to allow specialization in atypical cases (like checkbox and radio groups)

Thanks to Nikitin S.M. for bug reporting; see http://support.typo3.org/projects/formidable/m/typo3-project-formidable-bug-ajax-events-doesnt-raises-if-radio-button-presented-in-params-list/p/15/
----
Modified : /trunk/api/base/rdt_checkbox/res/js/checkbox.js
Modified : /trunk/api/base/rdt_radio/res/js/radio.js
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt
Modified : /trunk/res/jsfwk/framework.js
Modified : /trunk/res/jsfwk/minified/formidable.minified.js
Modified : /trunk/res/jsfwk/minified/formidable.minified.js.gz

 

Revision: 254
Author: jschneiderameos
Date: 17:39:50, jeudi 25 septembre 2008

Message:
api/base/rdr_template/api/class.tx_rdrtemplate.php:
  -> added the possibility to provide a codebehind on the /template/path property

api/class.tx_ameosformidable.php:
  -> added missing inclusion of class.t3lib_befunc.php in the div_rteToHtml() method
----
Modified : /trunk/api/base/rdr_template/api/class.tx_rdrtemplate.php
Modified : /trunk/api/class.tx_ameosformidable.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt

 

Revision: 253
Author: jschneiderameos
Date: 22:15:48, mardi 23 septembre 2008

Message:
rdr_template/api/class.tx_rdrtemplate.php:
  -> /beforeDisplay can now execute a codeBehind

rdt_date/api/class.tx_rdtdate.php:
  -> specialized _renderReadOnly() to add value.readable template channel when renderlet is used in read only mode

api/class.mainrenderlet.php:
  -> corrected __getDefaultValue() thanks to Gary Wong, from SpinGroup; see http://support.typo3.org/projects/formidable/m/typo3-project-formidable-defaultvalue-bug-in-text-renderlet-365454/
  -> modified majixRepaintDependancies() to use the array-pass-by-ref trick, to avoid pass-by-ref warnings

api/class.tx_ameosformidable.php:
  -> modified toServerPath() and toRelPath() to correct bug that occured when Formidable was used in a TYPO3 instance that was not installed at the root of the website

res/shared/php/pclzip:
  -> added pclzip, a GNU-lgpl php solution to create zip archives on-the-fly
----
Modified : /trunk/api/base/rdr_template/api/class.tx_rdrtemplate.php
Modified : /trunk/api/base/rdt_date/api/class.tx_rdtdate.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
Added : /trunk/res/shared/php/pclzip
Added : /trunk/res/shared/php/pclzip/gnu-lgpl.txt
Added : /trunk/res/shared/php/pclzip/pclzip.lib.php
Added : /trunk/res/shared/php/pclzip/readme.txt

 

Revision: 252
Author: jschneiderameos
Date: 23:34:33, lundi 22 septembre 2008

Message:
All: added experimental dependancy handling on renderlets; should not be used before next revision

api/class.mainrenderlet.php:
  -> added /addBlank=mixed, default false on listbox; if true, a blank line (blank caption, blank value) will be added at the beginning of the listbox items collection; if string or LLL given, a line with blank value and of given caption will be added
  -> added hasDependancies() method; returns true if /dependsOn is set to something on renderlet
  -> _getAddInputParams() and _getAddInputParamsArray() may now receive an array of configuration as an argument
  -> added /hideIfDependancyEmpty=boolean, default false; hide renderlet if it's dependancy is empty.
  -> added isValueEmpty() and isDataEmpty() methods, to check for emptyness of renderlet

rdt_listbox/api/class.tx_rdtlistbox.php:
  -> added /hideIfEmpty=boolean, default false; if set, listbox will be hidden when empty
  -> added specialization of isDataEmpty() for renderlet:LISTBOX

rdt_box/res/js/box.js:
  -> modified setHtml() method, to use prototype's Element.replace()
----
Modified : /trunk/api/base/rdt_box/res/js/box.js
Modified : /trunk/api/base/rdt_listbox/api/class.tx_rdtlistbox.php
Modified : /trunk/api/class.mainrenderlet.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt
Modified : /trunk/res/jsfwk/minified/formidable.minified.js.gz

 

Revision: 251
Author: jschneiderameos
Date: 23:12:17, mercredi 17 septembre 2008

Message:
api/class.mainrenderlet.php:
  -> added dependancy management between renderlets, thru /dependsOn="rdtAbsName"
  -> added majix method majixRepaintDependancies(), to repaint a renderlet an all it's dependancies

api/class.tx_ameosformidable.php:
  -> _initRenderlets(): added dependancies initialization

res/jsfwk/framework.js:
  -> Formidable.Classes.RdtBaseClass.repaint(): now uses Element.replace to update renderlet's HTML
----
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
Modified : /trunk/res/jsfwk/minified/formidable.minified.js
Modified : /trunk/res/jsfwk/minified/formidable.minified.js.gz

 

Revision: 250
Author: jschneiderameos
Date: 18:42:42, mercredi 17 septembre 2008

Message:
rdt_button/api/class.tx_rdtbutton.php:
  -> removed specialized js as it was not needed

rdt_link/api/class.tx_rdtlink.php:
  -> added the .wrap template channel; useful in combination with the wrap() template method

api/class.jslayer.php:
  -> added loadScriptaculousBuilder() method, to load the Builder.js scriptaculous file

remote/formidableajax.php:
  -> added the &getThrower() method, returning the renderlet that has just thrown the ajax event

api/class.tx_ameosformidable.php:
  -> added getLLLabel() template method

----
Modified : /trunk/api/base/rdt_button/api/class.tx_rdtbutton.php
Modified : /trunk/api/base/rdt_link/api/class.tx_rdtlink.php
Modified : /trunk/api/class.jslayer.php
Modified : /trunk/api/class.tx_ameosformidable.php
Modified : /trunk/ext_emconf.php
Modified : /trunk/ext_typoscript_setup.txt
Modified : /trunk/remote/formidableajax.php

 

Revision: 249
Author: jschneiderameos
Date: 20:18:06, mardi 16 septembre 2008

Message:
rdt_lister/api/class.tx_rdtlister.php:
  -> added /sortCol property on each column, to specify on which column to execute sort if different from /name
  -> corrected a bug in sort header management, resulting in incorrectly displayed sort headers

rdt_searchform/api/class.tx_rdtsearchform.php:
  -> added getCriterias() method
  -> moved processBeforeSearch() into _initFilters()

api/class.mainrenderlet.php:
  -> /data on renderlet can now be populated by codeBehind also

api/class.tx_ameosformidable.php:
  -> added getParams(), alias of getUserObjParams()
  -> added template methods extPath("ext_key") and "/abs/path".toWebPath()
----
Modified : /trunk/api/base/rdt_lister/api/class.tx_rdtlister.php
Modified : /trunk/api/base/rdt_lister/res/locallang/locallang.xml
Modified : /trunk/api/base/rdt_searchform/api/class.tx_rdtsearchform.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