2 namespace TYPO3\CMS\Frontend\ContentObject;
28 public function render($conf = array())
30 if (!empty($conf[
'if.']) && !$this->cObj->checkIf($conf[
'if.'])) {
34 $setCurrent = isset($conf[
'setCurrent.']) ? $this->cObj->stdWrap($conf[
'setCurrent'], $conf[
'setCurrent.']) : $conf[
'setCurrent'];
36 $this->cObj->data[$this->cObj->currentValKey] = $setCurrent;
38 $key = isset($conf[
'key.']) ? $this->cObj->stdWrap($conf[
'key'], $conf[
'key.']) : $conf[
'key'];
39 $key = (string)$conf[$key] !==
'' ? $key :
'default';
41 if ($key ===
'default' && $conf[
'default'] === null) {
44 $theValue = $this->cObj->cObjGetSingle($conf[$key], $conf[$key .
'.'], $key);
46 if (isset($conf[
'stdWrap.'])) {
47 $theValue = $this->cObj->stdWrap($theValue, $conf[
'stdWrap.']);