1 | <?php |
||
7 | class Result |
||
8 | { |
||
9 | const FETCH_ASSOC = 1; |
||
10 | const FETCH_NUM = 2; |
||
11 | const FETCH_BOTH = 3; |
||
12 | const FETCH_OBJ = PDO::FETCH_OBJ; |
||
13 | |||
14 | protected $connection; |
||
15 | |||
16 | protected $statement; |
||
17 | |||
18 | protected $cursor; |
||
19 | |||
20 | public function __construct(\PDOStatement $statement, Connection $connection) |
||
25 | |||
26 | public function getStatement() |
||
30 | |||
31 | public function toArray() |
||
35 | |||
36 | public function count() |
||
40 | |||
41 | public function column($column, $row) |
||
47 | |||
48 | public function fetch($style = self::FETCH_BOTH, $orientation = PDO::FETCH_ORI_NEXT, $offset = 0) |
||
61 | |||
62 | public function fetchObject($class = 'stdClass', array $params = []) |
||
68 | |||
69 | public function fetchAll() |
||
73 | |||
74 | public function free() |
||
78 | |||
79 | public function convertFetchStyle($style) |
||
98 | |||
99 | public function setCursor($rowNumber) |
||
103 | |||
104 | public function getColumnMeta($columnNumber) |
||
108 | |||
109 | public function getColumnCount() |
||
113 | |||
114 | public function getConnection() |
||
118 | } |
||
119 |