1 | <?php |
||
11 | class SQLServerQuery extends Query |
||
|
|||
12 | { |
||
13 | |||
14 | /** |
||
15 | * The SQLServerConnector object that created this result set. |
||
16 | * |
||
17 | * @var SQLServerConnector |
||
18 | */ |
||
19 | private $connector; |
||
20 | |||
21 | /** |
||
22 | * The internal MSSQL handle that points to the result set. |
||
23 | * |
||
24 | * @var resource |
||
25 | */ |
||
26 | private $handle; |
||
27 | |||
28 | /** |
||
29 | * Hook the result-set given into a Query class, suitable for use by sapphire. |
||
30 | * @param SQLServerConnector $connector The database object that created this query. |
||
31 | * @param resource $handle the internal mssql handle that is points to the resultset. |
||
32 | */ |
||
33 | public function __construct(SQLServerConnector $connector, $handle) |
||
38 | |||
39 | public function __destruct() |
||
45 | |||
46 | public function getIterator() |
||
62 | |||
63 | public function numRecords() |
||
76 | } |
||
77 |