Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function check(ResultCollection $results) |
||
23 | { |
||
24 | /** @var $resourceModel Mage_Core_Model_Resource */ |
||
25 | $resourceModel = Mage::getModel('core/resource'); |
||
26 | |||
27 | /** @var $dbAdapter Varien_Db_Adapter_Interface|false */ |
||
28 | $dbAdapter = $resourceModel->getConnection('core_write'); |
||
29 | |||
30 | $result = $results->createResult(); |
||
31 | |||
32 | if (!$dbAdapter instanceof Varien_Db_Adapter_Interface) { |
||
|
|||
33 | $result->setStatus($result::STATUS_ERROR); |
||
34 | $result->setMessage( |
||
35 | "<error>Mysql Version: Can not check. Unable to obtain resource connection 'core_write'.</error>" |
||
36 | ); |
||
37 | } else { |
||
38 | $this->checkImplementation($result, $dbAdapter); |
||
39 | } |
||
40 | } |
||
41 | |||
49 |