1 | <?php |
||
12 | abstract class AbstractDatabaseCommand extends AbstractMagentoCommand |
||
13 | { |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $dbSettings; |
||
18 | |||
19 | /** |
||
20 | * @var bool |
||
21 | */ |
||
22 | protected $isSocketConnect = false; |
||
23 | |||
24 | /** |
||
25 | * Common configuration for all DB commands |
||
26 | */ |
||
27 | protected function configure() |
||
37 | |||
38 | /** |
||
39 | * Initialize db connection settings |
||
40 | * |
||
41 | * @param InputInterface $input |
||
42 | * @param OutputInterface $output |
||
43 | */ |
||
44 | protected function initialize(InputInterface $input, OutputInterface $output) |
||
50 | |||
51 | /** |
||
52 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
53 | */ |
||
54 | protected function detectDbSettings(OutputInterface $output) |
||
61 | |||
62 | /** |
||
63 | * @param $name |
||
64 | * |
||
65 | * @return mixed |
||
66 | */ |
||
67 | public function __get($name) |
||
73 | |||
74 | /** |
||
75 | * Generate help for compression |
||
76 | * |
||
77 | * @return string |
||
78 | */ |
||
79 | protected function getCompressionHelp() |
||
90 | |||
91 | /** |
||
92 | * @param string $type |
||
93 | * @return AbstractCompressor |
||
94 | * @deprecated Since 1.1.12; use AbstractCompressor::create() instead |
||
95 | */ |
||
96 | protected function getCompressor($type) |
||
100 | |||
101 | /** |
||
102 | * @return string |
||
103 | * |
||
104 | * @deprecated Please use database helper |
||
105 | */ |
||
106 | protected function getMysqlClientToolConnectionString() |
||
110 | |||
111 | /** |
||
112 | * Creates a PDO DSN for the adapter from $this->_config settings. |
||
113 | * |
||
114 | * @see Zend_Db_Adapter_Pdo_Abstract |
||
115 | * @return string |
||
116 | * |
||
117 | * @deprecated Please use database helper |
||
118 | */ |
||
119 | protected function _dsn() |
||
123 | |||
124 | /** |
||
125 | * @return DatabaseHelper |
||
126 | */ |
||
127 | protected function getDatabaseHelper() |
||
131 | } |
||
132 |