Definition at line 17 of file ISO2709.php.
◆ __construct()
| ISO2709RecordSetIterator::__construct |
( |
|
$input |
) |
|
◆ current()
| ISO2709RecordSetIterator::current |
( |
|
) |
|
◆ key()
| ISO2709RecordSetIterator::key |
( |
|
) |
|
◆ next()
| ISO2709RecordSetIterator::next |
( |
|
) |
|
Definition at line 34 of file ISO2709.php.
34 {
35 if( $this->currentRecord === null ) $this->currentRecord = new $this->recordClass();
36 $this->currentPosition++;
37 $string = stream_get_line( $this->input, 99999, $this->RecordTerminator );
39 if( $string ===
false ) $this->
valid =
false;
40 else $this->currentRecord->loadFromString( $this->prepend . $string );
41 $this->prepend = "";
42 }
References valid().
Referenced by rewind().
◆ rewind()
| ISO2709RecordSetIterator::rewind |
( |
|
) |
|
Definition at line 43 of file ISO2709.php.
43 {
44 if($this->currentPosition !==
null)
rewind( $this->input );
45 $this->currentPosition = -1;
46 $this->currentRecord = new $this->recordClass();
48 }
References next(), and rewind().
Referenced by rewind().
◆ valid()
| ISO2709RecordSetIterator::valid |
( |
|
) |
|
◆ $currentPosition
| ISO2709RecordSetIterator::$currentPosition |
|
protected |
◆ $currentRecord
| ISO2709RecordSetIterator::$currentRecord |
|
protected |
◆ $input
| ISO2709RecordSetIterator::$input |
|
protected |
◆ $prepend
| ISO2709RecordSetIterator::$prepend |
|
protected |
◆ $RecordTerminator
| ISO2709RecordSetIterator::$RecordTerminator |
|
protected |
◆ $valid
| ISO2709RecordSetIterator::$valid |
|
protected |
The documentation for this class was generated from the following file: