SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | ||
3 | - | namespace Vendor\RegionalObject\ViewHelpers; |
3 | + | namespace Vendor\ExtensionName\ViewHelpers; |
4 | ||
5 | /** | |
6 | * Just for demanding objects etc, not for CRUD actions | |
7 | * If you use this ViewHelper for crud actions you make property injections possible | |
8 | * So only use this if you need simpler urls in a search-result request | |
9 | * | |
10 | * @author Philipp Wrann | |
11 | */ | |
12 | class FrontendFormViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\FormViewHelper { | |
13 | ||
14 | /** | |
15 | * exchanged noCacheHash from FALSE to TRUE | |
16 | * | |
17 | * @param string $action Target action | |
18 | * @param array $arguments Arguments | |
19 | * @param string $controller Target controller | |
20 | * @param string $extensionName Target Extension Name (without "tx_" prefix and no underscores). If NULL the current extension name is used | |
21 | * @param string $pluginName Target plugin. If empty, the current plugin name is used | |
22 | * @param integer $pageUid Target page uid | |
23 | * @param mixed $object Object to use for the form. Use in conjunction with the "property" attribute on the sub tags | |
24 | * @param integer $pageType Target page type | |
25 | * @param boolean $noCache set this to disable caching for the target page. You should not need this. | |
26 | * @param boolean $noCacheHash set this to supress the cHash query parameter created by TypoLink. You should not need this. | |
27 | * @param string $section The anchor to be added to the action URI (only active if $actionUri is not set) | |
28 | * @param string $format The requested format (e.g. ".html") of the target page (only active if $actionUri is not set) | |
29 | * @param array $additionalParams additional action URI query parameters that won't be prefixed like $arguments (overrule $arguments) (only active if $actionUri is not set) | |
30 | * @param boolean $absolute If set, an absolute action URI is rendered (only active if $actionUri is not set) | |
31 | * @param boolean $addQueryString If set, the current query parameters will be kept in the action URI (only active if $actionUri is not set) | |
32 | * @param array $argumentsToBeExcludedFromQueryString arguments to be removed from the action URI. Only active if $addQueryString = TRUE and $actionUri is not set | |
33 | * @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 | |
34 | * @param string $actionUri can be used to overwrite the "action" attribute of the form tag | |
35 | * @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 | |
36 | * @param string $hiddenFieldClassName | |
37 | * @return string rendered form | |
38 | */ | |
39 | 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) { | |
40 | return parent::render($action, $arguments, $controller, $extensionName, $pluginName, $pageUid, $object, $pageType, $noCache, $noCacheHash, $section, $format, $additionalParams, $absolute, $addQueryString, $argumentsToBeExcludedFromQueryString, $fieldNamePrefix, $actionUri, $objectName, $hiddenFieldClassName); | |
41 | } | |
42 | ||
43 | /** | |
44 | * Dont need that in our purpose | |
45 | */ | |
46 | protected function renderHiddenReferrerFields() { } | |
47 | ||
48 | /** | |
49 | * Dont need that in our purpose | |
50 | */ | |
51 | protected function renderTrustedPropertiesField() { } | |
52 | ||
53 | /** | |
54 | * Dont need that in our purpose | |
55 | */ | |
56 | protected function renderRequestHashField() { } | |
57 | ||
58 | ||
59 | ||
60 | } | |
61 | ||
62 | ?> |