@@ -86,6 +86,18 @@ class TimeSheetDB extends SQLite3 | |||
$query->execute()->finalize(); | |||
} | |||
function getTasks () | |||
{ | |||
$query = $this->prepare('SELECT * from tasks'); | |||
$dbResults = $query-> execute(); | |||
$resultArray = array(); | |||
while($row = $dbResults->fetchArray()){ | |||
array_push($resultArray,$row); | |||
} | |||
return $resultArray; | |||
} | |||
} | |||
$container->set('db', function () { |