|
SPL-StandardPHPLibrary
|


Public Member Functions | |
| __construct ($file, $handler) | |
| __destruct () | |
| current () | |
| key () | |
| next () | |
| rewind () | |
| valid () | |
Protected Attributes | |
| $db = NULL | |
Private Member Functions | |
| fetch_data () | |
Private Attributes | |
| $key = false | |
| $val = false | |
| DbaReader::__construct | ( | $file, | |
| $handler | |||
| ) |
Open database $file with $handler in read only mode.
| file | Database file to open. |
| handler | Handler to use for database access. |
Definition at line 30 of file dbareader.inc.
| DbaReader::__destruct | ( | ) |
| DbaReader::current | ( | ) |
Implements Iterator.
Definition at line 73 of file dbareader.inc.
References $val.
|
private |
Fetches the current data if $key is valid.
Definition at line 64 of file dbareader.inc.
References key().
Referenced by next(), and rewind().

| DbaReader::key | ( | ) |
Implements Iterator.
Definition at line 91 of file dbareader.inc.
References $key.
Referenced by fetch_data(), next(), rewind(), and valid().
| DbaReader::next | ( | ) |
Move to next element.
Implements Iterator.
Definition at line 56 of file dbareader.inc.
References fetch_data(), and key().

| DbaReader::rewind | ( | ) |
Rewind to first element.
Implements Iterator.
Definition at line 46 of file dbareader.inc.
References fetch_data(), and key().

| DbaReader::valid | ( | ) |
Implements Iterator.
Definition at line 80 of file dbareader.inc.
References key().

|
protected |
Definition at line 20 of file dbareader.inc.
|
private |
Definition at line 21 of file dbareader.inc.
Referenced by key().
|
private |
Definition at line 22 of file dbareader.inc.
Referenced by current().
1.8.5