Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ADORecordSet.php « Core « src - github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ff97d161d4405c3fd4d790fab747f8e18ad21515 (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\Core;

use ADOFieldObject;
use ADORecordSet as ADODBRecordsetClass;
use Countable;
use PHPPgAdmin\Interfaces\RecordSet;

/**
 * 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();
    }
}