30 public function render($conf = array()) {
31 if (!empty($conf[
'if.']) && !$this->cObj->checkIf($conf[
'if.'])) {
36 $originalRec =
$GLOBALS[
'TSFE']->currentRecord;
40 ++
$GLOBALS[
'TSFE']->recordRegister[$originalRec];
42 $conf[
'table'] = isset($conf[
'table.']) ? trim($this->cObj->stdWrap($conf[
'table'], $conf[
'table.'])) : trim($conf[
'table']);
43 $renderObjName = $conf[
'renderObj'] ?:
'<' . $conf[
'table'];
44 $renderObjKey = $conf[
'renderObj'] ?
'renderObj' :
'';
45 $renderObjConf = $conf[
'renderObj.'];
46 $slide = isset($conf[
'slide.']) ? (int)$this->cObj->stdWrap($conf[
'slide'], $conf[
'slide.']) : (int)$conf[
'slide'];
50 $slideCollect = isset($conf[
'slide.'][
'collect.']) ? (int)$this->cObj->stdWrap($conf[
'slide.'][
'collect'], $conf[
'slide.'][
'collect.']) : (int)$conf[
'slide.'][
'collect'];
54 $slideCollectReverse = isset($conf[
'slide.'][
'collectReverse.']) ? (int)$this->cObj->stdWrap($conf[
'slide.'][
'collectReverse'], $conf[
'slide.'][
'collectReverse.']) : (int)$conf[
'slide.'][
'collectReverse'];
55 $slideCollectReverse = $slideCollectReverse ? TRUE : FALSE;
56 $slideCollectFuzzy = isset($conf[
'slide.'][
'collectFuzzy.']) ? (int)$this->cObj->stdWrap($conf[
'slide.'][
'collectFuzzy'], $conf[
'slide.'][
'collectFuzzy.']) : (int)$conf[
'slide.'][
'collectFuzzy'];
57 if ($slideCollectFuzzy) {
58 $slideCollectFuzzy = TRUE;
60 $slideCollectFuzzy = FALSE;
63 $slideCollectFuzzy = TRUE;
67 $res = $this->cObj->exec_getQuery($conf[
'table'], $conf[
'select.']);
68 if ($error =
$GLOBALS[
'TYPO3_DB']->sql_error()) {
69 $GLOBALS[
'TT']->setTSlogMessage($error, 3);
71 $this->cObj->currentRecordTotal =
$GLOBALS[
'TYPO3_DB']->sql_num_rows($res);
72 $GLOBALS[
'TT']->setTSlogMessage(
'NUMROWS: ' .
$GLOBALS[
'TYPO3_DB']->sql_num_rows($res));
75 $cObj->setParent($this->cObj->data, $this->cObj->currentRecord);
76 $this->cObj->currentRecordNumber = 0;
78 while ($row =
$GLOBALS[
'TYPO3_DB']->sql_fetch_assoc($res)) {
80 $GLOBALS[
'TSFE']->sys_page->versionOL($conf[
'table'], $row, TRUE);
82 if (is_array($row) &&
$GLOBALS[
'TSFE']->sys_language_contentOL) {
83 if ($conf[
'table'] ==
'pages') {
84 $row =
$GLOBALS[
'TSFE']->sys_page->getPageOverlay($row);
86 $row =
$GLOBALS[
'TSFE']->sys_page->getRecordOverlay($conf[
'table'], $row,
$GLOBALS[
'TSFE']->sys_language_content,
$GLOBALS[
'TSFE']->sys_language_contentOL);
92 if (is_array(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'tslib/class.tslib_content_content.php'][
'modifyDBRow'])) {
93 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'tslib/class.tslib_content_content.php'][
'modifyDBRow'] as $_classRef) {
95 $_procObj->modifyDBRow($row, $conf[
'table']);
98 if (
$GLOBALS[
'TYPO3_CONF_VARS'][
'FE'][
'activateContentAdapter']) {
99 \TYPO3\CMS\Core\Resource\Service\FrontendContentAdapterService::modifyDBRow($row, $conf[
'table']);
101 if (!
$GLOBALS[
'TSFE']->recordRegister[($conf[
'table'] .
':' . $row[
'uid'])]) {
102 $this->cObj->currentRecordNumber++;
103 $cObj->parentRecordNumber = $this->cObj->currentRecordNumber;
104 $GLOBALS[
'TSFE']->currentRecord = $conf[
'table'] .
':' . $row[
'uid'];
105 $this->cObj->lastChanged($row[
'tstamp']);
106 $cObj->start($row, $conf[
'table']);
107 $tmpValue =
$cObj->cObjGetSingle($renderObjName, $renderObjConf, $renderObjKey);
108 $cobjValue .= $tmpValue;
112 $GLOBALS[
'TYPO3_DB']->sql_free_result($res);
114 if ($slideCollectReverse) {
115 $theValue = $cobjValue . $theValue;
117 $theValue .= $cobjValue;
119 if ($slideCollect > 0) {
126 $conf[
'select.'][
'pidInList'] = $this->cObj->getSlidePids($conf[
'select.'][
'pidInList'], $conf[
'select.'][
'pidInList.']);
127 if (isset($conf[
'select.'][
'pidInList.'])) {
128 unset($conf[
'select.'][
'pidInList.']);
130 $again = strlen($conf[
'select.'][
'pidInList']) ? TRUE : FALSE;
132 }
while ($again && ($slide && !strlen($theValue) && $slideCollectFuzzy || $slide && $slideCollect));
134 $wrap = isset($conf[
'wrap.']) ? $this->cObj->stdWrap($conf[
'wrap'], $conf[
'wrap.']) : $conf[
'wrap'];
136 $theValue = $this->cObj->wrap($theValue, $wrap);
138 if (isset($conf[
'stdWrap.'])) {
139 $theValue = $this->cObj->stdWrap($theValue, $conf[
'stdWrap.']);
142 $GLOBALS[
'TSFE']->currentRecord = $originalRec;
144 --
$GLOBALS[
'TSFE']->recordRegister[$originalRec];
static getUserObj($classRef, $checkPrefix='', $silent=FALSE)
static makeInstance($className)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]