class ObjectFormatter extends AbstractFormatter
Object formatter for Propel query format() returns a ObjectCollection of Propel model objects
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() | ||
BaseObject |
formatRecord(BaseObject $record = null)
Formats an ActiveRecord object |
from AbstractFormatter |
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 |
BaseObject |
getAllObjectsFromRow(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 59
public
getCollectionClassName()
in AbstractFormatter at line 184
public BaseObject
formatRecord(BaseObject $record = null)
Formats an ActiveRecord object
at line 24
public
format(DataFetcherInterface $dataFetcher = null)
at line 64
public
formatOne(DataFetcherInterface $dataFetcher = null)
at line 82
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 97
public BaseObject
getAllObjectsFromRow(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