Esempio n. 1
0
 public function setTable(sql\template\component\Table $table)
 {
     if (!$this->connection) {
         $this->setConnection($table->getConnection());
     }
     $this->aTables[] = $table;
 }
Esempio n. 2
0
 /**
  * @usedby sql\template\component\Reference::loadCollection()
  */
 public function setTable(Table $table, $bReset = false)
 {
     $sNamespace = $this->getHandler()->getNamespace('sql');
     $this->setType($this->getHandler()->getType('collection', $sNamespace));
     $this->setNamespace($sNamespace);
     //$this->setNamespace($table->getNamespace(), 'element', false);
     $this->setName('[collection]');
     $this->setQuery($table->getQuery($bReset));
     $this->table = $table;
     $table->setCollection($this);
     //$this->loadNamespace($table->getNamespace());
 }
Esempio n. 3
0
 public function parseRoot(\sylma\dom\element $el)
 {
     parent::parseRoot($el);
     $this->insertQuery(false);
 }
Esempio n. 4
0
 public function parseRoot(dom\element $el)
 {
     parent::parseRoot($el);
     $this->setSource($this->getWindow()->getVariable('post'));
 }
Esempio n. 5
0
 protected function getFromTree(sql\template\component\Table $tree)
 {
     return $tree->loadConnection($this->readx());
 }