public final function Matches(ColumnData $OtherColumnData) { if ($OtherColumnData instanceof TableColumnData && !$this->Table->Is($OtherColumnData->Table)) { return false; } else { return parent::Matches($OtherColumnData); } }
/** * Deletes given table. * * @param string $name The table name. * * @return bool Indicates if the table was deleted or not. */ public function deleteTable($name) { try { $this->_tableProxy->deleteTable($name); return true; } catch (\Exception $ex) { return false; } }
private function InvalidTable(ITable $Table) { return new InvalidTableException('The supplied table is not part of this result row, expecting on of %s: %s given', implode(', ', array_keys($this->Rows)), $Table->GetName()); }
/** * Add sides to array * * @param array $node reference to node [column name] => value * @param int $left * @param int $right * @return void */ private function addSides(array &$node, $left, $right) { $node[$this->table->getLeft()] = $left; $node[$this->table->getRight()] = $right; }
public function Create(ITable $table) { if ($table != null) { $table->Create($this); } }
public final function RemoveTable(ITable $Table) { unset($this->Tables[$Table->GetName()]); array_walk($Table->GetColumns(), [$this, 'RemoveColumn']); }
/** * Add a table to the criterion. * * @param ITable $Table The table to add * @return void */ public final function AddTable(ITable $Table) { $this->Tables[$Table->GetName()] = $Table; }