‪TYPO3CMS  9.5
AutocompleteViewHelper.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
17 
47 {
51  protected ‪$ajaxWidget = true;
52 
56  protected ‪$controller;
57 
61  public function ‪initializeArguments()
62  {
63  parent::initializeArguments();
64  $this->registerArgument('objects', QueryResultInterface::class, 'Objects to auto-complete', true);
65  $this->registerArgument('for', 'string', 'Property to fill', true);
66  $this->registerArgument('searchProperty', 'string', 'Property to search within when filtering list', true);
67  }
68 
72  public function ‪injectAutocompleteController(\‪TYPO3\CMS\Fluid\ViewHelpers\Widget\Controller\AutocompleteController ‪$controller)
73  {
74  $this->controller = ‪$controller;
75  }
76 
80  public function ‪render()
81  {
82  return $this->‪initiateSubRequest();
83  }
84 }
‪TYPO3\CMS\Fluid\ViewHelpers\Widget\AutocompleteViewHelper\$controller
‪TYPO3 CMS Fluid ViewHelpers Widget Controller AutocompleteController $controller
Definition: AutocompleteViewHelper.php:54
‪TYPO3\CMS\Fluid\ViewHelpers\Widget\AutocompleteViewHelper\initializeArguments
‪initializeArguments()
Definition: AutocompleteViewHelper.php:59
‪TYPO3
‪TYPO3\CMS\Fluid\ViewHelpers\Widget
Definition: AutocompleteViewHelper.php:2
‪TYPO3\CMS\Fluid\Core\Widget\AbstractWidgetViewHelper
Definition: AbstractWidgetViewHelper.php:26
‪TYPO3\CMS\Extbase\Persistence\QueryResultInterface
Definition: QueryResultInterface.php:21
‪TYPO3\CMS\Fluid\ViewHelpers\Widget\AutocompleteViewHelper
Definition: AutocompleteViewHelper.php:47
‪TYPO3\CMS\Fluid\ViewHelpers\Widget\AutocompleteViewHelper\render
‪string render()
Definition: AutocompleteViewHelper.php:78
‪TYPO3\CMS\Fluid\Core\Widget\AbstractWidgetViewHelper\initiateSubRequest
‪TYPO3 CMS Extbase Mvc ResponseInterface initiateSubRequest()
Definition: AbstractWidgetViewHelper.php:204
‪TYPO3\CMS\Fluid\ViewHelpers\Widget\AutocompleteViewHelper\$ajaxWidget
‪bool $ajaxWidget
Definition: AutocompleteViewHelper.php:50
‪TYPO3\CMS\Fluid\ViewHelpers\Widget\AutocompleteViewHelper\injectAutocompleteController
‪injectAutocompleteController(\TYPO3\CMS\Fluid\ViewHelpers\Widget\Controller\AutocompleteController $controller)
Definition: AutocompleteViewHelper.php:70