|
@@ 200-202 (lines=3) @@
|
| 197 |
|
*/ |
| 198 |
|
public function setFetchMode($mode) |
| 199 |
|
{ |
| 200 |
|
if ($mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) { |
| 201 |
|
throw new TDBMException("Unknown fetch mode: '".$this->mode."'"); |
| 202 |
|
} |
| 203 |
|
$this->mode = $mode; |
| 204 |
|
|
| 205 |
|
return $this; |
|
@@ 1265-1267 (lines=3) @@
|
| 1262 |
|
$countSql .= ' ORDER BY '.$orderString; |
| 1263 |
|
} |
| 1264 |
|
|
| 1265 |
|
if ($mode !== null && $mode !== self::MODE_CURSOR && $mode !== self::MODE_ARRAY) { |
| 1266 |
|
throw new TDBMException("Unknown fetch mode: '".$this->mode."'"); |
| 1267 |
|
} |
| 1268 |
|
|
| 1269 |
|
$mode = $mode ?: $this->mode; |
| 1270 |
|
|