Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 9 |
| StatsDAO | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 9 |
| __construct($db) | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
|||
| getSqlById($id) | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 7 |
|||
| <? | |
| class StatsDAO | |
| { | |
| protected $db; | |
| public function __construct($db) | |
| { | |
| $this->db = $db; | |
| } | |
| public function getSqlById($id) | |
| { | |
| $sql = "SELECT * from stats WHERE id = ?"; | |
| $statement = $this->db->prepare($sql); | |
| $statement->bindParam(':id', $id, PDO::PARAM_INT); | |
| $sth->execute(); | |
| $rows = $sth->fetch(); | |
| $statarray = array(); | |
| return $statarray; | |
| } | |
| } | |
| ?> |