Advertisement
Guest User

Untitled

a guest
Apr 19th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <?php
  2. namespace Application\Model;
  3.  
  4. use Zend\Db\TableGateway\TableGateway;
  5.  
  6. class ProdutoTable
  7. {
  8. protected $tableGateway;
  9.  
  10. public function __construct(TableGateway $tableGateway)
  11. {
  12. $this->tableGateway = $tableGateway;
  13. }
  14.  
  15. public function fetchAll()
  16. {
  17. $resultSet = $this->tableGateway->select();
  18. return $resultSet;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement