PluginProbe
Import WP – CSV & XML Import Export for WordPress / 2.8.1
Import WP – CSV & XML Import Export for WordPress v2.8.1
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 / Exporter / State / ExporterState.php

ExporterState.php in Import WP – CSV & XML Import Export for WordPress 2.8.1, at class/Common/Exporter/State/ExporterState.php

35 lines 734 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\Exporter\State;
4
5 use ImportWP\Common\Runner\RunnerState;
6
7 class ExporterState extends RunnerState
8 {
9 protected static $object_type = 'exporter';
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(['export', 'timeout']);
19 }
20
21 protected function default($session)
22 {
23 return array_merge(parent::default($session), [
24 'section' => 'export',
25 'progress' => [
26 'export' => [
27 'start' => 0,
28 'end' => 0,
29 'current_row' => 0,
30 ]
31 ],
32 ]);
33 }
34 }
35