| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | public static function getAll($sql, $offset, $limit) |
||
| 10 | { |
||
| 11 | $dbalConnection = MoufManager::getMoufManager()->get('dbalConnection'); |
||
| 12 | /* @var $dbalConnection \Doctrine\DBAL\Connection */ |
||
| 13 | $sql .= self::getFromLimitString($offset, $limit); |
||
| 14 | $statement = $dbalConnection->executeQuery($sql); |
||
| 15 | $results = $statement->fetchAll(); |
||
| 16 | |||
| 17 | $array = []; |
||
| 18 | |||
| 19 | foreach ($results as $result) { |
||
| 20 | $array[] = $result; |
||
| 21 | } |
||
| 22 | |||
| 23 | return $array; |
||
| 24 | } |
||
| 25 | |||
| 43 |