Beispiel #1
0
 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;
     }
 }
Beispiel #3
0
 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());
 }
Beispiel #4
0
 /**
  * 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;
 }
Beispiel #5
0
 public function Create(ITable $table)
 {
     if ($table != null) {
         $table->Create($this);
     }
 }
Beispiel #6
0
 public final function RemoveTable(ITable $Table)
 {
     unset($this->Tables[$Table->GetName()]);
     array_walk($Table->GetColumns(), [$this, 'RemoveColumn']);
 }
Beispiel #7
0
 /**
  * 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;
 }