getContent() 공개 메소드

Get parsed template content
public getContent ( string $template = null ) : string
$template string
리턴 string
예제 #1
0
파일: Widget.php 프로젝트: forkcms/forkcms
 /**
  * Get the block content
  *
  * @param string $template
  *
  * @return string
  */
 public function render($template = null)
 {
     // set path to template if the widget didn't return any data
     if ($this->output === null) {
         return trim($this->object->getContent($template));
     }
     // return possible output
     return trim($this->output);
 }