[TYPO3-core] 0001963: tslib_pibase: incorporate the fh_library
Holzinger Franz
franz at fholzinger.com
Mon Dec 5 20:24:59 CET 2005
Hello,
I have created a diff file at
http://bugs.typo3.org/view.php?id=1963
to get 2 new functions and 1 interface. These are needed by all extensions.
All functions have already been used from the fh_library by tt_products
and one function in sr_feuser_register.
pi_getSetupOrFFvalue is needed to get either the CODE field or the
display mode of the flexform, however it can used generally for all kind
of TypoScript settings which have a duplicate in flexforms. This
function prefers the flexforms if activated and otherwise uses
configuration from the TypoScript setup.
pi_displayHelpPage is needed to display a help page, e.g. if an error
occurs. In future this method can be extended and every extension would
profit from this.
$pi_errorMessage is a new member variable. The extension programmer
shall store here any error messages that need to be displayed to the
frontend user. Of course, a better error system should be implemented
one day.
function pi_sortCodes($codes) is only an interface. With this it is
accomplished that all extensions will look similar. This shall be
overwritten, because generally there needs to be an order in which the
CODEs should be treated. E.g. in tt_products the OVERVIEW cannot be
displayed before the BASKET view. Otherwise the user can put something
into the basket, but the mini basket is always one step behind. This
method is necessary for all extensions who accept more than one CODE
(display mode) at a time.
Regards,
Franz
More information about the TYPO3-team-core
mailing list