Config
4 months ago
Db
3 months ago
Handler
2 years ago
Visit
1 month ago
Action.php
3 months ago
ActionPageview.php
2 years ago
BotRequest.php
3 months ago
BotRequestProcessor.php
1 month ago
Cache.php
6 months ago
Db.php
1 year ago
Failures.php
6 months ago
FingerprintSalt.php
1 year ago
GoalManager.php
1 month ago
Handler.php
2 years ago
IgnoreCookie.php
1 year ago
LogTable.php
1 year ago
Model.php
6 months ago
PageUrl.php
2 weeks ago
Request.php
1 month ago
RequestHandlerTrait.php
4 months ago
RequestProcessor.php
1 month ago
RequestSet.php
6 months ago
Response.php
3 months ago
ScheduledTasksRunner.php
1 year ago
Settings.php
3 months ago
TableLogAction.php
6 months ago
TrackerCodeGenerator.php
1 year ago
TrackerConfig.php
1 month ago
Visit.php
3 months ago
VisitExcluded.php
3 months ago
VisitInterface.php
3 months ago
Visitor.php
1 month ago
VisitorNotFoundInDb.php
1 month ago
VisitorRecognizer.php
1 year ago
BotRequestProcessor.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Matomo - free/libre analytics platform |
| 5 | * |
| 6 | * @link https://matomo.org |
| 7 | * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 8 | */ |
| 9 | declare (strict_types=1); |
| 10 | namespace Piwik\Tracker; |
| 11 | |
| 12 | abstract class BotRequestProcessor |
| 13 | { |
| 14 | /** |
| 15 | * This is the first method called when processing a bot request. |
| 16 | * |
| 17 | * Derived classes can use this method to manipulate a bot request before the request |
| 18 | * is handled. Plugins could change the URL, add custom variables, etc. |
| 19 | */ |
| 20 | public function manipulateRequest(\Piwik\Tracker\Request $request) : void |
| 21 | { |
| 22 | // empty |
| 23 | } |
| 24 | /** |
| 25 | * This method is called last. |
| 26 | * |
| 27 | * Derived classes should use this method to insert log data. |
| 28 | * |
| 29 | * @return bool return true if the processor handled the request, this will automatically trigger archive invalidation |
| 30 | */ |
| 31 | public function handleRequest(\Piwik\Tracker\Request $request) : bool |
| 32 | { |
| 33 | return \false; |
| 34 | } |
| 35 | } |
| 36 |