class ArrayFormatter extends AbstractFormatter
Array formatter for Propel query format() returns a ArrayCollection of associative arrays
Methods
| __construct(BaseModelCriteria $criteria = null, DataFetcherInterface $dataFetcher = null) | from AbstractFormatter | |
|
setDataFetcher(DataFetcherInterface $dataFetcher)
Sets a DataFetcherInterface object. |
from AbstractFormatter | |
| DataFetcherInterface |
getDataFetcher()
Returns the current DataFetcherInterface object. |
from AbstractFormatter |
| AbstractFormatter |
init(BaseModelCriteria $criteria, DataFetcherInterface $dataFetcher = null)
Define the hydration schema based on a query object. |
from AbstractFormatter |
| setDbName($dbName) | from AbstractFormatter | |
| getDbName() | from AbstractFormatter | |
| setClass($class) | from AbstractFormatter | |
| getClass() | from AbstractFormatter | |
| setWith($withs = array()) | from AbstractFormatter | |
| getWith() | from AbstractFormatter | |
| setAsColumns($asColumns = array()) | from AbstractFormatter | |
| getAsColumns() | from AbstractFormatter | |
| setHasLimit($hasLimit = false) | from AbstractFormatter | |
| hasLimit() | from AbstractFormatter | |
| getCollectionClassName() | ||
| array |
formatRecord(BaseObject $record = null)
Formats an ActiveRecord object |
|
| format(DataFetcherInterface $dataFetcher = null) | ||
| formatOne(DataFetcherInterface $dataFetcher = null) | ||
| isObjectFormatter() | ||
| checkInit() | from AbstractFormatter | |
| getTableMap() | from AbstractFormatter | |
| BaseObject |
getSingleObjectFromRow(array $row, string $class, int $col)
Gets a Propel object hydrated from a selection of columns in statement row |
from AbstractFormatter |
| Array |
getStructuredArrayFromRow(array $row)
Hydrates a series of objects from a result row The first object to hydrate is the model of the Criteria The following objects (the ones added by way of ModelCriteria::with()) are linked to the first one |
Details
in AbstractFormatter at line 46
public
__construct(BaseModelCriteria $criteria = null, DataFetcherInterface $dataFetcher = null)
in AbstractFormatter at line 63
public
setDataFetcher(DataFetcherInterface $dataFetcher)
Sets a DataFetcherInterface object.
in AbstractFormatter at line 73
public DataFetcherInterface
getDataFetcher()
Returns the current DataFetcherInterface object.
in AbstractFormatter at line 87
public AbstractFormatter
init(BaseModelCriteria $criteria, DataFetcherInterface $dataFetcher = null)
Define the hydration schema based on a query object.
Fills the Formatter's properties using a Criteria as source
in AbstractFormatter at line 103
public
setDbName($dbName)
in AbstractFormatter at line 108
public
getDbName()
in AbstractFormatter at line 113
public
setClass($class)
in AbstractFormatter at line 119
public
getClass()
in AbstractFormatter at line 124
public
setWith($withs = array())
in AbstractFormatter at line 129
public
getWith()
in AbstractFormatter at line 134
public
setAsColumns($asColumns = array())
in AbstractFormatter at line 139
public
getAsColumns()
in AbstractFormatter at line 144
public
setHasLimit($hasLimit = false)
in AbstractFormatter at line 149
public
hasLimit()
at line 55
public
getCollectionClassName()
at line 89
public array
formatRecord(BaseObject $record = null)
Formats an ActiveRecord object
at line 28
public
format(DataFetcherInterface $dataFetcher = null)
at line 60
public
formatOne(DataFetcherInterface $dataFetcher = null)
at line 94
public
isObjectFormatter()
in AbstractFormatter at line 195
public
checkInit()
in AbstractFormatter at line 202
public
getTableMap()
in AbstractFormatter at line 251
public BaseObject
getSingleObjectFromRow(array $row, string $class, int $col)
Gets a Propel object hydrated from a selection of columns in statement row
at line 109
public Array
getStructuredArrayFromRow(array $row)
Hydrates a series of objects from a result row The first object to hydrate is the model of the Criteria The following objects (the ones added by way of ModelCriteria::with()) are linked to the first one