/**
  *
  * Renders the topic icon.
  *
  * @param \Mittwald\Typo3Forum\Domain\Model\Forum\Topic $topic
  *                                                         The topic for which the icon is to be rendered.
  * @param integer                             $width      Image width
  * @return string             The rendered icon.
  *
  */
 public function render(\Mittwald\Typo3Forum\Domain\Model\Forum\Topic $topic = NULL, $width = NULL)
 {
     $data = $this->getDataArray($topic);
     if ($data['new']) {
         return parent::render('plugin.tx_typo3forum.renderer.icons.topic_new', $data);
     } else {
         return parent::render('plugin.tx_typo3forum.renderer.icons.topic', $data);
     }
 }
 /**
  *
  * Renders the userfield value.
  *
  * @param FrontendUser $user The user for whom the userfield value is to be rendered.
  * @param AbstractUserfield $userfield The userfield
  * @return string HTML content
  *
  */
 public function render(FrontendUser $user, AbstractUserfield $userfield)
 {
     if (!$userfield instanceof TyposcriptUserfield) {
         return new \InvalidArgumentException('Only userfields of type TyposcriptUserField are supported', 1435048481);
     }
     $data = $userfield->getValueForUser($user);
     $data = $this->convertDataToString($data);
     return parent::render($userfield->getTyposcriptPath() . '.output', implode(' ', $data));
 }
 /**
  *
  * Renders the forum icon.
  *
  * @param \Mittwald\Typo3Forum\Domain\Model\Forum\Forum $forum
  *                                                         The forum for which the icon is to be rendered.
  * @param integer                             $width      Image width
  * @param string                              $alt        Alt text
  * @return string             The rendered icon.
  *
  */
 public function render(\Mittwald\Typo3Forum\Domain\Model\Forum\Forum $forum = NULL, $width = NULL, $alt = "")
 {
     $data = $this->getDataArray($forum);
     if ($data['new']) {
         return parent::render('plugin.tx_typo3forum.renderer.icons.forum_new', $data);
     } else {
         return parent::render('plugin.tx_typo3forum.renderer.icons.forum', $data);
     }
 }
 public function initializeArguments()
 {
     parent::initializeArguments();
     $this->registerArgument('class', 'string', 'CSS class.');
 }
 /**
  *
  * Initializes the view helper's arguments.
  *
  */
 public function initializeArguments()
 {
     parent::initializeArguments();
 }
 /**
  *
  * Renders the report icon.
  *
  * @param \Mittwald\Typo3Forum\Domain\Model\Moderation\Report $report
  *                                                               The report for which the icon is to be rendered.
  * @param integer                                   $width      Image width
  * @param string                                    $alt        Alt text
  * @return string             The rendered icon.
  *
  */
 public function render(\Mittwald\Typo3Forum\Domain\Model\Moderation\Report $report = NULL, $width = NULL, $alt = "")
 {
     return parent::render('plugin.tx_typo3forum.renderer.icons.report', $this->getDataArray($report));
 }