REDROOM
PHP 8.0.30
Path:
Logout
Edit File
Size: 1.58 KB
Close
/home/certprox/template.certproxywizard.com/wp-content/plugins/hostinger-reach/src/Jobs/ImportJob.php
Text
Base64
<?php namespace Hostinger\Reach\Jobs; use Hostinger\Reach\Api\Handlers\ReachApiHandler; use Hostinger\Reach\Integrations\ImportManager; class ImportJob extends AbstractBatchedJob { public const JOB_NAME = 'import'; public ImportManager $import_manager; public function __construct( ActionScheduler $action_scheduler, ReachApiHandler $reach_api_handler, ImportManager $import_manager ) { parent::__construct( $action_scheduler, $reach_api_handler ); $this->import_manager = $import_manager; } public function get_name(): string { return self::JOB_NAME; } protected function get_batch_size(): int { return 50; } protected function get_batch( int $batch_number, array $args ): array { $limit = $this->get_batch_size(); $integration = $args['integration']; $form_id = $args['form_id'] ?? null; return $this->import_manager->get_contacts( $integration, $form_id, $limit, ( $batch_number - 1 ) * $limit ); } protected function process_items( array $args = array() ): void { $items = $args['items'] ?? array(); if ( empty( $items ) ) { return; } $this->reach_api_handler->post_import_contacts( $items ); } protected function handle_complete( int $final_batch_number, array $args ): void { parent::handle_complete( $final_batch_number, $args ); $integration = $args['integration']; $form_id = $args['form_id'] ?? null; $this->import_manager->set_completed_import( $integration, array( $form_id ) ); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
AbandonedCartsJob.php
2.59 KB
lrw-r--r--
2026-06-10 16:30:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AbstractBatchedJob.php
2.44 KB
lrw-r--r--
2026-06-10 16:30:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AbstractJob.php
2.32 KB
lrw-r--r--
2026-06-10 16:30:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ActionScheduler.php
1.56 KB
lrw-r--r--
2026-06-10 16:30:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CleanupCartsJob.php
1.58 KB
lrw-r--r--
2026-06-10 16:30:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ImportJob.php
1.58 KB
lrw-r--r--
2026-06-10 16:30:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
JobInterface.php
397 B
lrw-r--r--
2026-06-10 16:30:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RecurringJobInterface.php
148 B
lrw-r--r--
2026-06-10 16:30:29
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).