TYPO3 CMS  TYPO3_6-2
ContentTableContentObject.php
Go to the documentation of this file.
1 <?php
3 
23 
30  public function render($conf = array()) {
31  $controlTable = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\TableRenderer');
32  $tableParams = isset($conf['tableParams.']) ? $this->cObj->stdWrap($conf['tableParams'], $conf['tableParams.']) : $conf['tableParams'];
33  if ($tableParams) {
34  $controlTable->tableParams = $tableParams;
35  }
36  // loads the pagecontent
37  $conf['cWidth'] = isset($conf['cWidth.']) ? $this->cObj->stdWrap($conf['cWidth'], $conf['cWidth.']) : $conf['cWidth'];
38  $controlTable->contentW = $conf['cWidth'];
39  // loads the menues if any
40  if (is_array($conf['c.'])) {
41  $controlTable->content = $this->cObj->cObjGet($conf['c.'], 'c.');
42  $contentTDParams = isset($conf['c.']['TDParams.']) ? $this->cObj->stdWrap($conf['c.']['TDParams'], $conf['c.']['TDParams.']) : $conf['c.']['TDParams'];
43  $controlTable->contentTDparams = isset($contentTDParams) ? $contentTDParams : 'valign="top"';
44  }
45  if (is_array($conf['lm.'])) {
46  $controlTable->lm = $this->cObj->cObjGet($conf['lm.'], 'lm.');
47  $lmTDParams = isset($conf['lm.']['TDParams.']) ? $this->cObj->stdWrap($conf['lm.']['TDParams'], $conf['lm.']['TDParams.']) : $conf['lm.']['TDParams'];
48  $controlTable->lmTDparams = isset($lmTDParams) ? $lmTDParams : 'valign="top"';
49  }
50  if (is_array($conf['tm.'])) {
51  $controlTable->tm = $this->cObj->cObjGet($conf['tm.'], 'tm.');
52  $tmTDParams = isset($conf['tm.']['TDParams.']) ? $this->cObj->stdWrap($conf['tm.']['TDParams'], $conf['tm.']['TDParams.']) : $conf['tm.']['TDParams'];
53  $controlTable->tmTDparams = isset($tmTDParams) ? $tmTDParams : 'valign="top"';
54  }
55  if (is_array($conf['rm.'])) {
56  $controlTable->rm = $this->cObj->cObjGet($conf['rm.'], 'rm.');
57  $rmTDParams = isset($conf['rm.']['TDParams.']) ? $this->cObj->stdWrap($conf['rm.']['TDParams'], $conf['rm.']['TDParams.']) : $conf['rm.']['TDParams'];
58  $controlTable->rmTDparams = isset($rmTDParams) ? $rmTDParams : 'valign="top"';
59  }
60  if (is_array($conf['bm.'])) {
61  $controlTable->bm = $this->cObj->cObjGet($conf['bm.'], 'bm.');
62  $bmTDParams = isset($conf['bm.']['TDParams.']) ? $this->cObj->stdWrap($conf['bm.']['TDParams'], $conf['bm.']['TDParams.']) : $conf['bm.']['TDParams'];
63  $controlTable->bmTDparams = isset($bmTDParams) ? $bmTDParams : 'valign="top"';
64  }
65  $conf['offset'] = isset($conf['offset.']) ? $this->cObj->stdWrap($conf['offset'], $conf['offset.']) : $conf['offset'];
66  $conf['cMargins'] = isset($conf['cMargins.']) ? $this->cObj->stdWrap($conf['cMargins'], $conf['cMargins.']) : $conf['cMargins'];
67  $theValue = $controlTable->start($conf['offset'], $conf['cMargins']);
68  if (isset($conf['stdWrap.'])) {
69  $theValue = $this->cObj->stdWrap($theValue, $conf['stdWrap.']);
70  }
71  return $theValue;
72  }
73 
74 }