class ArrayDataFetcher extends AbstractDataFetcher
Class ArrayDataFetcher
Methods
__construct(mixed $dataObject) | from AbstractDataFetcher | |
setDataObject(mixed $dataObject)
Sets the dataObject. |
from AbstractDataFetcher | |
mixed |
getDataObject()
Returns the current data object that holds or references to actual data. |
from AbstractDataFetcher |
mixed|null |
fetchColumn(int $index = null)
Returns the data of the first column of the next row, based on this->fetch(); |
from AbstractDataFetcher |
void |
next()
Move forward to next element |
|
mixed |
current()
Return the current element |
|
array|null |
fetch()
Returns the data of the next row, based on this->next() && this->current(); |
|
mixed |
key()
Return the key of the current element |
|
boolean |
valid()
Checks if current position is valid |
|
void |
rewind()
Rewind the Iterator to the first element |
|
string |
getIndexType()
Returns the TableMap::TYPE_* depends on your resultSet. |
|
int |
count()
Returns the count of items in the resultSet. |
|
setIndexType(string $indexType)
Sets the current index type. |
||
close()
Frees the resultSet. |
Details
in AbstractDataFetcher at line 18
public
__construct(mixed $dataObject)
in AbstractDataFetcher at line 26
public
setDataObject(mixed $dataObject)
Sets the dataObject.
in AbstractDataFetcher at line 34
public mixed
getDataObject()
Returns the current data object that holds or references to actual data.
in AbstractDataFetcher at line 42
public mixed|null
fetchColumn(int $index = null)
Returns the data of the first column of the next row, based on this->fetch();
at line 22
public void
next()
Move forward to next element
at line 32
public mixed
current()
Return the current element
at line 40
public array|null
fetch()
Returns the data of the next row, based on this->next() && this->current();
at line 51
public mixed
key()
Return the key of the current element
at line 59
public boolean
valid()
Checks if current position is valid
at line 67
public void
rewind()
Rewind the Iterator to the first element
at line 75
public string
getIndexType()
Returns the TableMap::TYPE_* depends on your resultSet.
We need this information
to be able to populate objects based on your array of fetch().
at line 83
public int
count()
Returns the count of items in the resultSet.
at line 93
public
setIndexType(string $indexType)
Sets the current index type.
at line 101
public
close()
Frees the resultSet.