1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
6: */
7:
8: namespace Nette\Database;
9:
10:
11: /**
12: * Container of database result fetched into IRow.
13: *
14: * @author Jan Skrasek
15: */
16: interface IRowContainer extends \Traversable
17: {
18:
19: /**
20: * Fetches single row object.
21: * @return IRow|bool if there is no row
22: */
23: function fetch();
24:
25: /**
26: * Fetches all rows as associative array.
27: * @param string column name used for an array key or NULL for numeric index
28: * @param string column name used for an array value or NULL for the whole row
29: * @return array
30: */
31: function fetchPairs($key = NULL, $value = NULL);
32:
33: /**
34: * Fetches all rows.
35: * @return IRow[]
36: */
37: function fetchAll();
38:
39: }
40: