1 | <?php |
||
8 | class EcommerceTaskReviewSearches extends BuildTask |
||
|
|||
9 | { |
||
10 | /** |
||
11 | * number of days shown. |
||
12 | * |
||
13 | * @int |
||
14 | */ |
||
15 | protected $defaultDays = 100; |
||
16 | |||
17 | /** |
||
18 | * minimum number of searches for |
||
19 | * a particular keyword in order to show it at all. |
||
20 | * |
||
21 | * @int |
||
22 | */ |
||
23 | protected $defaultMinimum = 5; |
||
24 | |||
25 | /** |
||
26 | * show up to XXX days ago. |
||
27 | * |
||
28 | * @int |
||
29 | */ |
||
30 | protected $endingDaysBack = 0; |
||
31 | |||
32 | /** |
||
33 | * Standard (required) SS variable for BuildTasks. |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $title = 'Search Statistics'; |
||
38 | |||
39 | /** |
||
40 | * Standard (required) SS variable for BuildTasks. |
||
41 | * |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $description = ' |
||
45 | What did people search for on the website, you can use the days, min and ago GET variables to query different sets.'; |
||
46 | |||
47 | public function run($request) |
||
99 | |||
100 | public function Link($action = null) |
||
104 | } |
||
105 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.