1 | <?php |
||
10 | trait FetchResults |
||
11 | { |
||
12 | /** |
||
13 | * Fetch the next row from the result as an array. |
||
14 | * |
||
15 | * @param Result $result |
||
16 | * @param int $resultType |
||
17 | * @return bool|array |
||
18 | */ |
||
19 | public function fetchArray(Result $result, $resultType = MysqlConstants::FETCH_BOTH) |
||
25 | |||
26 | /** |
||
27 | * Fetch the next row as an associative array. |
||
28 | * |
||
29 | * @param Result $result |
||
30 | * @return bool|array |
||
31 | */ |
||
32 | public function fetchAssoc(Result $result) |
||
36 | |||
37 | /** |
||
38 | * Fetch the metadata of a column. |
||
39 | * USE WITH CARE! Accuracy of results is not guaranteed. |
||
40 | * |
||
41 | * @param Result $result |
||
42 | * @param int $fieldOffset |
||
43 | * @return bool|object |
||
44 | * @deprecated |
||
45 | */ |
||
46 | public function fetchField(Result $result, $fieldOffset = 0) |
||
62 | |||
63 | public function fetchLengths(Result $result) |
||
71 | |||
72 | public function fetchObject(Result $result, $className = 'stdClass', array $params = []) |
||
76 | |||
77 | public function fetchRow(Result $result) |
||
81 | |||
82 | public function result(Result $result, $row, $field = 0) |
||
88 | |||
89 | public function dataSeek() |
||
93 | |||
94 | public function numFields(Result $result) |
||
98 | |||
99 | public function numRows(Result $result) |
||
113 | |||
114 | protected function convertFetchStyle($style) |
||
133 | } |
||
134 |