Migrations
3 years ago
ajax
3 years ago
models
3 years ago
queries
3 years ago
sql
3 years ago
tables
3 years ago
utils
3 years ago
campaign_builder.php
3 years ago
capability_manager.php
3 years ago
chart.php
3 years ago
chart_geo.php
3 years ago
chart_svg.php
3 years ago
current_resource.php
3 years ago
dashboard_options.php
3 years ago
dashboard_widget.php
3 years ago
email_reports.php
3 years ago
filters.php
3 years ago
freemius.php
3 years ago
geo_database.php
3 years ago
geo_database_download_job.php
3 years ago
health_check.php
3 years ago
independent_analytics.php
3 years ago
known_referrers.php
3 years ago
pdf.php
3 years ago
query.php
3 years ago
quick_stats.php
3 years ago
real_time.php
3 years ago
rest_api.php
3 years ago
settings.php
3 years ago
track_resource_changes.php
3 years ago
view_counter.php
3 years ago
geo_database_download_job.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP; |
| 4 | |
| 5 | class Geo_Database_Download_Job extends WP_Async_Request |
| 6 | { |
| 7 | /** |
| 8 | * @var string |
| 9 | */ |
| 10 | protected $action = 'iawp_geo_database_download_job'; |
| 11 | |
| 12 | /** |
| 13 | * Handle |
| 14 | * |
| 15 | * Override this method to perform any actions required |
| 16 | * during the async request. |
| 17 | * |
| 18 | * @return void |
| 19 | */ |
| 20 | protected function handle(): void |
| 21 | { |
| 22 | $geo_database = new Geo_Database(); |
| 23 | $geo_database->download(); |
| 24 | } |
| 25 | } |
| 26 |