{@head.html} {@navigation.html}

Breeze Data Source

One of the most important components of the Breeze is it's Data Source.

1. Getting started.

Breeze Data Source implemented by BrDataSource class and intended to help to work with data which is stored in database. Currently Breeze supports MySQL and MongoDB databases. Typical Data Source definition looks like following:

$tasks = new BrDataSource('tasks');

First parameter in BrDataSource constructor is name of the table (or collection if we are talking about MongoDB).

You may also specify some additional settings:

$bookmarks = new BrDataSource( 'bookmarks'
                             , array( 'defaultOrder'    => 'name'
                                    , 'checkTraversing' => true
                                    )
                             );