Feature #19583 » class.tslib_content.php.new.new.new.diff
class.tslib_content.php 2008-11-11 17:46:45.870865100 -0600 | ||
---|---|---|
$renderObjKey = $conf['renderObj'] ? 'renderObj' : '';
|
||
$renderObjConf = $conf['renderObj.'];
|
||
$orderObjName = $conf['orderObj'] ? $conf['orderObj'] : '';
|
||
$orderObjKey = $conf['orderObj'] ? 'orderObj' : '';
|
||
$orderObjConf = $conf['orderObj.'];
|
||
$orderMax = $this->stdWrap($conf['orderMax'], $conf['orderMax.']);
|
||
$slide = intval($conf['slide'])?intval($conf['slide']):0;
|
||
$slideCollect = intval($conf['slide.']['collect'])?intval($conf['slide.']['collect']):0;
|
||
$slideCollectReverse = intval($conf['slide.']['collectReverse'])?true:false;
|
||
... | ... | |
$cObj =t3lib_div::makeInstance('tslib_cObj');
|
||
$cObj->setParent($this->data,$this->currentRecord);
|
||
$this->currentRecordNumber=0;
|
||
$cobjValue = '';
|
||
$cobjSet = array();
|
||
$cobjCnt = 0;
|
||
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
|
||
// Versioning preview:
|
||
... | ... | |
$GLOBALS['TSFE']->currentRecord = $conf['table'].':'.$row['uid'];
|
||
$this->lastChanged($row['tstamp']);
|
||
$cObj->start($row,$conf['table']);
|
||
$tmpValue = $cObj->cObjGetSingle($renderObjName, $renderObjConf, $renderObjKey);
|
||
$cobjValue .= $tmpValue;
|
||
$keyValue = $cObj->cObjGetSingle($orderObjName, $orderObjConf, $orderObjKey);
|
||
/* NOTE: this may be re-ordered for suffixed sub-sets of keys */
|
||
if (trim($tmpValue) != '')
|
||
$cobjSet[$keyValue . ' ' . $cobjCnt++] = $tmpValue;
|
||
// $cobjValue .= $tmpValue;
|
||
}
|
||
}
|
||
}
|
||
ksort($cobjSet);
|
||
if ($orderMax > 0) {
|
||
$cobjSet = array_slice($cobjSet, 0, $orderMax - 1);
|
||
}
|
||
$cobjValue = implode('', $cobjSet);
|
||
$GLOBALS['TYPO3_DB']->sql_free_result($res);
|
||
}
|
||
if ($slideCollectReverse) {
|
- « Previous
- 1
- 2
- Next »