|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
namespace ReliqArts\Scavenger\Helper; |
|
6
|
|
|
|
|
7
|
|
|
use ReliqArts\Scavenger\Service\ConfigProvider; |
|
8
|
|
|
|
|
9
|
|
|
final class TargetKey |
|
10
|
|
|
{ |
|
11
|
|
|
public const NAME = 'name'; |
|
12
|
|
|
public const SEARCH_FORM = 'form'; |
|
13
|
|
|
public const SEARCH_FORM_INPUT = 'keyword_input_name'; |
|
14
|
|
|
public const SEARCH_FORM_SELECTOR = 'selector'; |
|
15
|
|
|
public const SEARCH_FORM_SUBMIT_BUTTON = 'submit_button'; |
|
16
|
|
|
public const SEARCH_FORM_SUBMIT_BUTTON_ID = 'id'; |
|
17
|
|
|
public const SEARCH_FORM_SUBMIT_BUTTON_TEXT = 'text'; |
|
18
|
|
|
public const SEARCH_KEYWORDS = 'keywords'; |
|
19
|
|
|
public const EXAMPLE = 'example'; |
|
20
|
|
|
public const MODEL = 'model'; |
|
21
|
|
|
public const LINK = 'link'; |
|
22
|
|
|
public const SOURCE = 'source'; |
|
23
|
|
|
public const MARKUP = 'markup'; |
|
24
|
|
|
public const MARKUP_TITLE_LINK = 'title_link'; |
|
25
|
|
|
public const MARKUP_TITLE = self::TITLE; |
|
26
|
|
|
public const MARKUP_LINK = 'link'; |
|
27
|
|
|
public const MARKUP_INSIDE = 'inside'; |
|
28
|
|
|
public const MARKUP_FOCUS = 'focus'; |
|
29
|
|
|
public const PAGER = 'pager'; |
|
30
|
|
|
public const PAGER_SELECTOR = 'selector'; |
|
31
|
|
|
public const PAGER_TEXT = 'text'; |
|
32
|
|
|
public const PAGES = 'pages'; |
|
33
|
|
|
public const POSITION = 'position'; |
|
34
|
|
|
public const TITLE = 'title'; |
|
35
|
|
|
public const DISSECT = 'dissect'; |
|
36
|
|
|
public const PREPROCESS = 'preprocess'; |
|
37
|
|
|
public const REMAP = 'remap'; |
|
38
|
|
|
public const BAD_WORDS = 'bad_words'; |
|
39
|
|
|
public const SEARCH = 'search'; |
|
40
|
|
|
public const SEARCH_ENGINE_REQUEST_PAGES = 'serp'; |
|
41
|
|
|
public const ITEM_WRAPPER = 'item_wrapper'; |
|
42
|
|
|
public const RESULT = 'result'; |
|
43
|
|
|
public const RETAIN = 'retain'; |
|
44
|
|
|
public const ITEM = 'item'; |
|
45
|
|
|
public const WRAPPER = 'wrapper'; |
|
46
|
|
|
|
|
47
|
|
|
/** |
|
48
|
|
|
* TargetKey constructor. |
|
49
|
|
|
* |
|
50
|
|
|
* @codeCoverageIgnore |
|
51
|
|
|
*/ |
|
52
|
|
|
private function __construct() |
|
53
|
|
|
{ |
|
54
|
|
|
} |
|
55
|
|
|
|
|
56
|
|
|
public static function special(string $keyName): string |
|
57
|
|
|
{ |
|
58
|
|
|
return ConfigProvider::specialKey($keyName); |
|
59
|
|
|
} |
|
60
|
|
|
} |
|
61
|
|
|
|