TYPO3 CMS  TYPO3_6-2
FileContentObject.php
Go to the documentation of this file.
1 <?php
3 
23 
30  public function render($conf = array()) {
31  $file = isset($conf['file.']) ? $this->cObj->stdWrap($conf['file'], $conf['file.']) : $conf['file'];
32  $theValue = $this->cObj->fileResource($file, trim($this->cObj->getAltParam($conf, FALSE)));
33  $linkWrap = isset($conf['linkWrap.']) ? $this->cObj->stdWrap($conf['linkWrap'], $conf['linkWrap.']) : $conf['linkWrap'];
34  if ($linkWrap) {
35  $theValue = $this->cObj->linkWrap($theValue, $linkWrap);
36  }
37  $wrap = isset($conf['wrap.']) ? $this->cObj->stdWrap($conf['wrap'], $conf['wrap.']) : $conf['wrap'];
38  if ($wrap) {
39  $theValue = $this->cObj->wrap($theValue, $wrap);
40  }
41  if (isset($conf['stdWrap.'])) {
42  $theValue = $this->cObj->stdWrap($theValue, $conf['stdWrap.']);
43  }
44  return $theValue;
45  }
46 
47 }