public function addDataSource(HTML_QuickForm2_DataSource $datasource)
    {
        $this->getSessionContainer()->storeDatasources(
            array_merge($this->getSessionContainer()->getDatasources(),
                        array($datasource))
        );
    }
public function addDataSource(HTML_QuickForm2_DataSource $datasource)
    {
        $this->getSessionContainer()->storeDatasources(
            array_merge($this->getSessionContainer()->getDatasources(),
                        array($datasource))
        );
    }
public function addDataSource ( HTML_QuickForm2_DataSource $ datasource ) { $ this -> getSessionContainer ( ) -> storeDatasources ( array_merge ( $ this -> getSessionContainer ( ) -> getDatasources ( ) , array ( $ datasource ) ) ) ; }
Adds a new data source to the Controller

Note that Controller data sources are stored in session, so your data source
implementation should properly handle its (un)serialization.

@param    HTML_QuickForm2_DataSource  Data source
Adds a new data source to the Controller