public function setTable(sql\template\component\Table $table) { if (!$this->connection) { $this->setConnection($table->getConnection()); } $this->aTables[] = $table; }
/** * @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()); }
public function parseRoot(\sylma\dom\element $el) { parent::parseRoot($el); $this->insertQuery(false); }
public function parseRoot(dom\element $el) { parent::parseRoot($el); $this->setSource($this->getWindow()->getVariable('post')); }
protected function getFromTree(sql\template\component\Table $tree) { return $tree->loadConnection($this->readx()); }