1 |
ea63f5c6
|
Jan Šedivý
|
<?php
|
2 |
|
|
|
3 |
|
|
namespace App\Presenters;
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
use App\Components\ITransliterationSearchFormFactory;
|
7 |
|
|
use Nette\Application\UI\Presenter;
|
8 |
|
|
|
9 |
|
|
class TransliterationPresenter extends Presenter
|
10 |
|
|
{
|
11 |
|
|
/** @var ITransliterationSearchFormFactory */
|
12 |
|
|
private $transliterationSearchFormFactory;
|
13 |
|
|
|
14 |
|
|
public function __construct(ITransliterationSearchFormFactory $transliterationSearchFormFactory)
|
15 |
|
|
{
|
16 |
|
|
parent::__construct();
|
17 |
|
|
|
18 |
|
|
$this->transliterationSearchFormFactory = $transliterationSearchFormFactory;
|
19 |
|
|
}
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
public function actionSearch()
|
23 |
|
|
{
|
24 |
|
|
|
25 |
|
|
}
|
26 |
|
|
|
27 |
|
|
public function actionSearchResult(array $searchTerms = null)
|
28 |
|
|
{
|
29 |
|
|
|
30 |
|
|
}
|
31 |
|
|
|
32 |
|
|
public function createComponentTransliterationSearchForm()
|
33 |
|
|
{
|
34 |
|
|
return $this->transliterationSearchFormFactory->create();
|
35 |
|
|
}
|
36 |
|
|
}
|