Fortune.php 288 B

12345678910111213141516171819
  1. <?php
  2. namespace Vanilla\DataMapper;
  3. use Pimf\DataMapper\Base;
  4. class Fortune extends Base
  5. {
  6. /**
  7. * @return array
  8. */
  9. public function getAll()
  10. {
  11. $sth = $this->pdo->prepare('SELECT * FROM Fortune');
  12. $sth->execute();
  13. return $sth->fetchAll(\PDO::FETCH_ASSOC);
  14. }
  15. }