1 | <?php |
||
3 | class EcommerceSearchHistoryFormField extends LiteralField |
||
4 | { |
||
5 | /** |
||
6 | * total number days to search back. |
||
7 | * |
||
8 | * @var int |
||
9 | */ |
||
10 | protected $numberOfDays = 100; |
||
11 | |||
12 | /** |
||
13 | * how many days ago the data-analysis should end. |
||
14 | * |
||
15 | * @var int |
||
16 | */ |
||
17 | protected $endingDaysBack = 0; |
||
18 | |||
19 | /** |
||
20 | * minimum number of searches for the data to show up. |
||
21 | * |
||
22 | * @var int |
||
23 | */ |
||
24 | protected $minimumCount = 30; |
||
25 | |||
26 | /** |
||
27 | * maximum number of searches for the data to show up. |
||
28 | * |
||
29 | * @var int |
||
30 | */ |
||
31 | protected $maxRows = 20; |
||
32 | |||
33 | /** |
||
34 | * |
||
35 | * @var bool |
||
36 | */ |
||
37 | protected $addTitle = true; |
||
38 | |||
39 | /** |
||
40 | * |
||
41 | * @var bool |
||
42 | */ |
||
43 | protected $addAtoZ = true; |
||
44 | |||
45 | /** |
||
46 | * minimum number of searches for the data to show up. |
||
47 | * |
||
48 | * @var bool |
||
49 | */ |
||
50 | protected $showMoreLink = false; |
||
51 | |||
52 | public function __construct($name, $title = '') |
||
56 | |||
57 | /** |
||
58 | * @param int |
||
59 | * |
||
60 | * @return EcommerceSearchHistoryFormField |
||
61 | */ |
||
62 | public function setNumberOfDays($days) |
||
68 | |||
69 | /** |
||
70 | * @param int |
||
71 | * |
||
72 | * @return EcommerceSearchHistoryFormField |
||
73 | */ |
||
74 | public function setMinimumCount($count) |
||
80 | |||
81 | /** |
||
82 | * @param int |
||
83 | * |
||
84 | * @return EcommerceSearchHistoryFormField |
||
85 | */ |
||
86 | public function setShowMoreLink($b) |
||
92 | |||
93 | /** |
||
94 | * @param int |
||
95 | * |
||
96 | * @return EcommerceSearchHistoryFormField |
||
97 | */ |
||
98 | public function setEndingDaysBack($count) |
||
104 | |||
105 | /** |
||
106 | * @param int |
||
107 | * |
||
108 | * @return EcommerceSearchHistoryFormField |
||
109 | */ |
||
110 | public function setMaxRows($number) |
||
116 | |||
117 | /** |
||
118 | * @param bool |
||
119 | * |
||
120 | * @return EcommerceSearchHistoryFormField |
||
121 | */ |
||
122 | public function setAddTitle($b) |
||
128 | |||
129 | /** |
||
130 | * @param bool |
||
131 | * |
||
132 | * @return EcommerceSearchHistoryFormField |
||
133 | */ |
||
134 | public function setAddAtoZ($b) |
||
140 | |||
141 | |||
142 | public function FieldHolder($properties = array()) |
||
146 | |||
147 | public function Field($properties = array()) |
||
252 | } |
||
253 |