TYPO3 CMS  TYPO3_6-2
CaseContentObject.php
Go to the documentation of this file.
1 <?php
3 
23 
30  public function render($conf = array()) {
31  if (!empty($conf['if.']) && !$this->cObj->checkIf($conf['if.'])) {
32  return '';
33  }
34 
35  $setCurrent = isset($conf['setCurrent.']) ? $this->cObj->stdWrap($conf['setCurrent'], $conf['setCurrent.']) : $conf['setCurrent'];
36  if ($setCurrent) {
37  $this->cObj->data[$this->cObj->currentValKey] = $setCurrent;
38  }
39  $key = isset($conf['key.']) ? $this->cObj->stdWrap($conf['key'], $conf['key.']) : $conf['key'];
40  $key = strlen($conf[$key]) ? $key : 'default';
41  // If no "default" property is available, then an empty string is returned
42  if ($key === 'default' && $conf['default'] === NULL) {
43  $theValue = '';
44  } else {
45  $theValue = $this->cObj->cObjGetSingle($conf[$key], $conf[$key . '.'], $key);
46  }
47  if (isset($conf['stdWrap.'])) {
48  $theValue = $this->cObj->stdWrap($theValue, $conf['stdWrap.']);
49  }
50  return $theValue;
51  }
52 
53 }