[TYPO3-english] Core: RFC: #7921 / additionaly add stdWrap for uidInList
David Bruchmann
typo3-en at bruchmann-web.de
Fri May 29 02:48:22 CEST 2009
----- Ursprüngliche Nachricht -----
Von: David Bruchmann <typo3-en at bruchmann-web.de>
Gesendet: Freitag, 29. Mai 2009 02:38:08
An: TYPO3 English <typo3-english at lists.netfielders.de>
CC:
Betreff: [TYPO3-english] Core: RFC: #7921: recursive pidInList for
select in cObj CONTENT
stdWrap for uidInList is required too:
function getQuery($table, $conf, $returnQueryArray=FALSE) {
// Construct WHERE clause:
$conf['uidInList'] =
trim($this->stdWrap($conf['uidInList'],$conf['uidInList.']));
$conf['pidInList'] =
trim($this->stdWrap($conf['pidInList'],$conf['pidInList.']));
// Handle recursive function for the pidInList
$conf['recursive'] =
trim($this->stdWrap($conf['recursive'],$conf['recursive.']));
if ($conf['recursive']) {
foreach (explode(',', $conf['pidInList']) as $value) {
$pidList.= $value . ',' . $this->getTreeList($value,
$conf['recursive']);
}
$conf['pidInList'] = trim($pidList, ',');
}
.....
Regards David
More information about the TYPO3-english
mailing list