Interface IStream
-
MvcCore\Ext\Models\Db\Readers\IStream
implements
MvcCore\Ext\Models\Db\IReader
Methods summary
public
MvcCore\Ext\Models\Db\Readers\Streams\Iterator
|
#
ToInstances( string $fullClassName, integer $readingFlags = 0, string $keyColumnName = NULL, string $keyType = NULL )
Stream and read rows one by one into instances by given full class name and reading flags.
Stream and read rows one by one into instances by given full class name and reading flags.
Parameters
- $fullClassName
- $readingFlags
- $keyColumnName
- $keyType
Returns
|
public
MvcCore\Ext\Models\Db\Readers\Streams\Iterator
|
#
ToArrays( string $keyColumnName = NULL, string $keyType = NULL )
Stream and read rows one by one into associative arrays with item keys by SQL query columns.
Stream and read rows one by one into associative arrays with item keys by SQL query columns.
Parameters
Returns
|
public
MvcCore\Ext\Models\Db\Readers\Streams\Iterator
|
#
ToObjects( string $keyColumnName = NULL, string $keyType = NULL )
Stream and read rows one by one into \stdClass objects with item keys by SQL query columns.
Stream and read rows one by one into \stdClass objects with item keys by SQL query columns.
Parameters
Returns
|
public
MvcCore\Ext\Models\Db\Readers\Streams\Iterator
|
#
ToScalars( string $valueColumnName, string $valueType = NULL, string $keyColumnName = NULL, string $keyType = NULL )
Stream and read rows one by one into scalar values by each first row column.
Stream and read rows one by one into scalar values by each first row column.
Parameters
- $valueColumnName
- $valueType
- $keyColumnName
- $keyType
Returns
|
public
MvcCore\Ext\Models\Db\Readers\Streams\Iterator
|
#
ToAny( callable $valueCompleter, string $keyColumnName = NULL, string $keyType = NULL )
Stream and read rows one by one into array with custom items created by given callable completer called for each row.
Callable has to accept two arguments, first as raw row result and second is raw result key.
Callable completer has to return created result item instance.
Stream and read rows one by one into array with custom items created by given callable completer called for each row.
Callable has to accept two arguments, first as raw row result and second is raw result key.
Callable completer has to return created result item instance.
Parameters
- $valueCompleter
- $valueColumnName
- $keyColumnName
- $keyType
Returns
|