/** * Check if a new comment is allowed * * @param Post $post * * @return string */ public function render(Post $post) { $this->arguments['settings'] = $this->templateVariableContainer->get('settings'); // TYPO3 7.x if (is_callable('parent::render')) { return parent::render(); } // TYPO3 6.x // @todo Remove this someday if (static::evaluateCondition($this->arguments)) { return $this->renderThenChild(); } else { return $this->renderElseChild(); } }
/** * renders <f:then> child if $condition is true, otherwise renders <f:else> child. * * @param bool $condition View helper condition * @return string the rendered string * @api */ public function render($condition) { return parent::render(); }
/** * renders <f:then> child if the current logged in FE user belongs to the specified role (aka usergroup) * otherwise renders <f:else> child. * * @param string $role The usergroup (either the usergroup uid or its title) * @return string the rendered string * @api */ public function render($role) { return parent::render(); }