Storm\Core\Relational\Request::AddTable PHP Method

AddTable() final public method

Add a table to the request.
final public AddTable ( Storm\Core\Relational\ITable $Table ) : void
$Table Storm\Core\Relational\ITable The table to add
return void
    public final function AddTable(ITable $Table)
    {
        $this->Tables[$Table->GetName()] = $Table;
        $this->Criterion->AddTable($Table);
    }

Usage Example

Example #1
0
 public final function AddRelationToRequest(Relational\Request $Request, array $ParentRows = null)
 {
     $Request->AddTable($this->Table);
     $this->AddConstraintToRequest($Request);
     if ($ParentRows !== null && count($ParentRows) > 0) {
         $this->AddParentPredicateToRequest($Request, $ParentRows);
     }
 }
All Usage Examples Of Storm\Core\Relational\Request::AddTable