‪TYPO3CMS  10.4
AutocompleteViewHelper.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
21 
54 {
58  protected ‪$ajaxWidget = true;
59 
63  protected ‪$controller;
64 
65  public function ‪__construct()
66  {
67  trigger_error(__CLASS__ . ' will be removed in TYPO3 v11.', E_USER_DEPRECATED);
68  }
69 
73  public function ‪initializeArguments()
74  {
75  parent::initializeArguments();
76  $this->registerArgument('objects', QueryResultInterface::class, 'Objects to auto-complete', true);
77  $this->registerArgument('for', 'string', 'Property to fill', true);
78  $this->registerArgument('searchProperty', 'string', 'Property to search within when filtering list', true);
79  }
80 
84  public function ‪injectAutocompleteController(AutocompleteController ‪$controller)
85  {
86  $this->controller = ‪$controller;
87  }
88 
92  public function ‪render()
93  {
94  return $this->‪initiateSubRequest();
95  }
96 }
‪TYPO3\CMS\Fluid\ViewHelpers\Widget\AutocompleteViewHelper\$controller
‪TYPO3 CMS Fluid ViewHelpers Widget Controller AutocompleteController $controller
Definition: AutocompleteViewHelper.php:61
‪TYPO3\CMS\Fluid\ViewHelpers\Widget\AutocompleteViewHelper\initializeArguments
‪initializeArguments()
Definition: AutocompleteViewHelper.php:71
‪TYPO3\CMS\Fluid\ViewHelpers\Widget
Definition: AutocompleteViewHelper.php:16
‪TYPO3\CMS\Fluid\Core\Widget\AbstractWidgetViewHelper
Definition: AbstractWidgetViewHelper.php:30
‪TYPO3\CMS\Fluid\ViewHelpers\Widget\AutocompleteViewHelper\injectAutocompleteController
‪injectAutocompleteController(AutocompleteController $controller)
Definition: AutocompleteViewHelper.php:82
‪TYPO3\CMS\Extbase\Persistence\QueryResultInterface
Definition: QueryResultInterface.php:22
‪TYPO3\CMS\Fluid\ViewHelpers\Widget\AutocompleteViewHelper\__construct
‪__construct()
Definition: AutocompleteViewHelper.php:63
‪TYPO3\CMS\Fluid\ViewHelpers\Widget\AutocompleteViewHelper
Definition: AutocompleteViewHelper.php:54
‪TYPO3\CMS\Fluid\ViewHelpers\Widget\AutocompleteViewHelper\render
‪string render()
Definition: AutocompleteViewHelper.php:90
‪TYPO3\CMS\Fluid\ViewHelpers\Widget\Controller\AutocompleteController
Definition: AutocompleteController.php:26
‪TYPO3\CMS\Fluid\Core\Widget\AbstractWidgetViewHelper\initiateSubRequest
‪TYPO3 CMS Extbase Mvc ResponseInterface initiateSubRequest()
Definition: AbstractWidgetViewHelper.php:213
‪TYPO3\CMS\Fluid\ViewHelpers\Widget\AutocompleteViewHelper\$ajaxWidget
‪bool $ajaxWidget
Definition: AutocompleteViewHelper.php:57