Advertisement
Guest User

Untitled

a guest
Feb 7th, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. <?php
  2. namespace Model;
  3.  
  4. class Novinky extends \Nette\Object
  5. {
  6.         /** @var */
  7.         private $db;
  8.  
  9.         public function __construct(\DibiConnection $connection)
  10.         {
  11.                 $this->db = $connection;
  12.         }
  13.  
  14.         public function getAll()
  15.         {
  16.                 return $this->db->fetchAll('SELECT * FROM novinky');
  17.         }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement