@@ 25-59 (lines=35) @@ | ||
22 | /** |
|
23 | * {@inheritdoc} |
|
24 | */ |
|
25 | protected function configure() |
|
26 | { |
|
27 | $this |
|
28 | ->setName('iblock:export') |
|
29 | ->setDescription('Export information block(s) to xml') |
|
30 | ->addArgument( |
|
31 | 'type', |
|
32 | InputArgument::REQUIRED, |
|
33 | 'Information block type' |
|
34 | ) |
|
35 | ->addArgument( |
|
36 | 'code', |
|
37 | InputArgument::REQUIRED, |
|
38 | 'Information block code' |
|
39 | ) |
|
40 | ->addArgument( |
|
41 | 'dir', |
|
42 | InputArgument::OPTIONAL, |
|
43 | 'Directory to export' |
|
44 | ) |
|
45 | ->addOption( |
|
46 | 'sections', |
|
47 | 's', |
|
48 | InputOption::VALUE_OPTIONAL, |
|
49 | 'Export sections [ "active", "all", "none" ]', |
|
50 | 'none' |
|
51 | ) |
|
52 | ->addOption( |
|
53 | 'elements', |
|
54 | 'e', |
|
55 | InputOption::VALUE_OPTIONAL, |
|
56 | 'Export elements [ "active", "all", "none" ]', |
|
57 | 'none' |
|
58 | ); |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * {@inheritdoc} |
@@ 25-60 (lines=36) @@ | ||
22 | /** |
|
23 | * {@inheritdoc} |
|
24 | */ |
|
25 | protected function configure() |
|
26 | { |
|
27 | $this |
|
28 | ->setName('iblock:import') |
|
29 | ->setDescription('Import information block(s) from xml') |
|
30 | ->addArgument( |
|
31 | 'type', |
|
32 | InputArgument::REQUIRED, |
|
33 | 'Information block type' |
|
34 | ) |
|
35 | ->addArgument( |
|
36 | 'sites', |
|
37 | InputArgument::REQUIRED, |
|
38 | 'Sites to which the information block will be bound (if it is to be created)' |
|
39 | ) |
|
40 | ->addArgument( |
|
41 | 'dir', |
|
42 | InputArgument::OPTIONAL, |
|
43 | 'Directory to import' |
|
44 | ) |
|
45 | ->addOption( |
|
46 | 'sections', |
|
47 | 's', |
|
48 | InputOption::VALUE_OPTIONAL, |
|
49 | 'If an existing section is no longer in the source file [ leave: "N", deactivate: "A", delete: "D" ]', |
|
50 | 'A' |
|
51 | ) |
|
52 | ->addOption( |
|
53 | 'elements', |
|
54 | 'e', |
|
55 | InputOption::VALUE_OPTIONAL, |
|
56 | 'If an existing element is no longer in the source file [ leave: "N", deactivate: "A", delete: "D" ]', |
|
57 | 'A' |
|
58 | ); |
|
59 | ||
60 | } |
|
61 | ||
62 | /** |
|
63 | * {@inheritdoc} |