BrDataSource

Data source.

Object members

Method/propertyDescription
select($filter, $fields = array(), $order = array(), $options = array())Return data from data some
selectCount($filter, $fields = array(), $order = array(), $options = array())Return amount of data from data source

select() / selectCount()

Method/propertyDescription
$filterMongoDB filtering syntax must be used.
$fieldsList of fields to return. By default all data set fields will be returned.
$orderSort order. For example:
array('field_name1' => 1, 'field_name2' => -1)
means sort by field_name1 ascending, field_name2 descending
$options Possible values are:
skip - How many records to skip from the beginning of data set
limit - How many records to return with select statement