PluginProbe
Import WP – CSV & XML Import Export for WordPress / 2.7.12
Import WP – CSV & XML Import Export for WordPress v2.7.12
2.15.1 2.15.0 2.14.24 2.14.23 2.7.0 2.7.1 2.7.10 2.7.11 2.7.12 2.7.13 2.7.14 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.9.0 2.9.1 All 144 releases
jc-importer / class / Common / Importer / State / ImporterState.php

ImporterState.php in Import WP – CSV & XML Import Export for WordPress 2.7.12, at class/Common/Importer/State/ImporterState.php

40 lines 899 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace ImportWP\Common\Importer\State;
4
5 use ImportWP\Common\Runner\RunnerState;
6
7 class ImporterState extends RunnerState
8 {
9 protected static $object_type = 'importer';
10
11 public function is_running()
12 {
13 return $this->has_status('running');
14 }
15
16 public function is_resumable()
17 {
18 return $this->has_section(['import', 'delete', 'timeout']);
19 }
20
21 protected function default($session)
22 {
23 return array_merge(parent::default($session), [
24 'section' => 'import',
25 'progress' => [
26 'import' => [
27 'start' => 0,
28 'end' => 0,
29 'current_row' => 0,
30 ],
31 'delete' => [
32 'start' => 0,
33 'end' => 0,
34 'current_row' => 0,
35 ]
36 ],
37 ]);
38 }
39 }
40