blob: cd1b0119e37bf7de3c88b93a549b79a9bd2a4065 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
<?php
/**
* PHPPgAdmin6
*/
namespace PHPPgAdmin;
use PHPPgAdmin\Interfaces\RecordSet;
use ADOFieldObject;
use ADORecordSet as ADODBRecordsetClass;
use Countable;
/**
* Extends ADORecordSet to let correct inference on PHPDoc params.
*/
class ADORecordSet extends ADODBRecordsetClass implements Countable, RecordSet
{
/**
* Returns the recordCount.
*/
public function count(): int
{
return $this->NumRows();
}
/**
* synonyms RecordCount and RowCount.
*
* @return int number of rows or -1 if this is not supported
*/
public function RecordCount():int
{
return $this->count();
}
/**
* Returns the recordCount.
*
* @param int $fieldoffset
*
* @return ADOFieldObject the field
*/
public function FetchField($fieldoffset = -1): ADOFieldObject
{
return parent::FetchField();
}
public function MoveNext(): void
{
parent::MoveNext();
}
}
|