示例#1
0
 function Update(\DBAL\DataSource\SQLDataSource $dataSource)
 {
     $roots = $this->getRoots($dataSource);
     foreach ($roots as $root) {
         $src = new \DBAL\DataSource\SQLDataSource(array($root));
         $it = new \DBAL\Iterator\DataNodeIteratorIterator(new \DBAL\Iterator\DataNodeIterator($root));
         foreach ($it as $control) {
             $src[] = $control;
         }
         parent::Update($src);
     }
 }
示例#2
0
 function Fill(SqlDataSource $dataSource)
 {
     $this->Database = $dataSource->Database;
     return parent::Fill($dataSource);
 }