Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Vendor\ExtensionName\ViewHelpers;
- /**
- * Just for demanding objects etc, not for CRUD actions
- * If you use this ViewHelper for crud actions you make property injections possible
- * So only use this if you need simpler urls in a search-result request
- *
- * @author Philipp Wrann
- */
- class FrontendFormViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\FormViewHelper {
- /**
- * exchanged noCacheHash from FALSE to TRUE
- *
- * @param string $action Target action
- * @param array $arguments Arguments
- * @param string $controller Target controller
- * @param string $extensionName Target Extension Name (without "tx_" prefix and no underscores). If NULL the current extension name is used
- * @param string $pluginName Target plugin. If empty, the current plugin name is used
- * @param integer $pageUid Target page uid
- * @param mixed $object Object to use for the form. Use in conjunction with the "property" attribute on the sub tags
- * @param integer $pageType Target page type
- * @param boolean $noCache set this to disable caching for the target page. You should not need this.
- * @param boolean $noCacheHash set this to supress the cHash query parameter created by TypoLink. You should not need this.
- * @param string $section The anchor to be added to the action URI (only active if $actionUri is not set)
- * @param string $format The requested format (e.g. ".html") of the target page (only active if $actionUri is not set)
- * @param array $additionalParams additional action URI query parameters that won't be prefixed like $arguments (overrule $arguments) (only active if $actionUri is not set)
- * @param boolean $absolute If set, an absolute action URI is rendered (only active if $actionUri is not set)
- * @param boolean $addQueryString If set, the current query parameters will be kept in the action URI (only active if $actionUri is not set)
- * @param array $argumentsToBeExcludedFromQueryString arguments to be removed from the action URI. Only active if $addQueryString = TRUE and $actionUri is not set
- * @param string $fieldNamePrefix Prefix that will be added to all field names within this form. If not set the prefix will be tx_yourExtension_plugin
- * @param string $actionUri can be used to overwrite the "action" attribute of the form tag
- * @param string $objectName name of the object that is bound to this form. If this argument is not specified, the name attribute of this form is used to determine the FormObjectName
- * @param string $hiddenFieldClassName
- * @return string rendered form
- */
- public function render($action = NULL, array $arguments = array(), $controller = NULL, $extensionName = NULL, $pluginName = NULL, $pageUid = NULL, $object = NULL, $pageType = 0, $noCache = TRUE, $noCacheHash = FALSE, $section = '', $format = '', array $additionalParams = array(), $absolute = FALSE, $addQueryString = FALSE, array $argumentsToBeExcludedFromQueryString = array(), $fieldNamePrefix = NULL, $actionUri = NULL, $objectName = NULL, $hiddenFieldClassName = NULL) {
- return parent::render($action, $arguments, $controller, $extensionName, $pluginName, $pageUid, $object, $pageType, $noCache, $noCacheHash, $section, $format, $additionalParams, $absolute, $addQueryString, $argumentsToBeExcludedFromQueryString, $fieldNamePrefix, $actionUri, $objectName, $hiddenFieldClassName);
- }
- /**
- * Dont need that in our purpose
- */
- protected function renderHiddenReferrerFields() { }
- /**
- * Dont need that in our purpose
- */
- protected function renderTrustedPropertiesField() { }
- /**
- * Dont need that in our purpose
- */
- protected function renderRequestHashField() { }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement