1 | <?php |
||
11 | trait FetchResults |
||
12 | { |
||
13 | /** |
||
14 | * Fetch the next row from the result as an array. |
||
15 | * |
||
16 | * @param Result $result |
||
17 | * @param int $resultType |
||
18 | * |
||
19 | * @return bool|array |
||
20 | */ |
||
21 | public function fetchArray(Result $result, $resultType = MysqlConstants::FETCH_BOTH) |
||
27 | |||
28 | /** |
||
29 | * Fetch the next row as an associative array. |
||
30 | * |
||
31 | * @param Result $result |
||
32 | * |
||
33 | * @return bool|array |
||
34 | */ |
||
35 | public function fetchAssoc(Result $result) |
||
39 | |||
40 | /** |
||
41 | * Fetch the metadata of a column. |
||
42 | * USE WITH CARE! Accuracy of results is not guaranteed. |
||
43 | * |
||
44 | * @param Result $result |
||
45 | * @param int $fieldOffset |
||
46 | * |
||
47 | * @return bool|object |
||
48 | * |
||
49 | * @deprecated |
||
50 | */ |
||
51 | public function fetchField(Result $result, $fieldOffset = 0) |
||
67 | |||
68 | public function fetchLengths(Result $result) |
||
76 | |||
77 | public function fetchObject(Result $result, $className = 'stdClass', array $params = []) |
||
81 | |||
82 | public function fetchRow(Result $result) |
||
86 | |||
87 | public function result(Result $result, $row, $field = 0) |
||
93 | |||
94 | public function dataSeek() |
||
98 | |||
99 | public function numFields(Result $result) |
||
103 | |||
104 | public function numRows(Result $result) |
||
118 | |||
119 | protected function convertFetchStyle($style) |
||
138 | } |
||
139 |