Пример #1
0
 function Fill(\DBAL\DataView $view)
 {
     $view->getCommand()->getQuery()->getResource()->getStream()->setConnection($this->getDatabase()->getConnection());
     /*
     		if(!$view->Command->Query->Resource->Stream->isOpen() )
     			$view->Command->Query->Resource->Stream->open();*/
     //$this->Database->Select();
     return parent::Fill($view);
 }
Пример #2
0
<?php

use DBAL\Data;
use DBAL\XML;
use DBAL\XML\Data\Tree;
$dataSource = new Data\Source();
$dataAdapter = new Data\Adapter();
$node = new Tree\Node('test');
$subnode = new Tree\Node('subnode', array('test' => 'someValue', 'attr' => 2), $node);
$dataSource->add($node);
$params = array('path' => 'tests\\test.xml');
$dataAdapter->View = new XML\View($params);
$dataAdapter->Update($dataSource);
var_dump($dataSource);