blob: feae209cdef9505aba4e0aa5ddc88f20c632b9a1 (
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
|
<?php
/**
* PHPPgAdmin 6.1.3
*/
namespace PHPPgAdmin;
use ADOFieldObject;
use ADORecordSet as ADODBRecordsetClass;
use Countable;
/**
* Extends ADORecordSet to let correct inference on PHPDoc params.
*/
class ADORecordSet extends ADODBRecordsetClass implements Countable
{
/**
* 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()
{
return $this->count();
}
/**
* Returns the recordCount.
*
* @param int $fieldoffset
*
* @return ADOFieldObject the field
*/
public function fetchField($fieldoffset = -1): ADOFieldObject
{
return parent::fetchField();
}
}
|