Piwik\DataAccess\LogQueryBuilder\JoinTables::addTableToJoin PHP Метод

addTableToJoin() публичный Метод

public addTableToJoin ( $tableName )
    public function addTableToJoin($tableName)
    {
        $this->checkTableCanBeUsedForSegmentation($tableName);
        $this->append($tableName);
    }

Usage Example

Пример #1
0
 /**
  * @expectedException \Exception
  * @expectedExceptionMessage Table 'log_foo_bar_baz' can't be used for segmentation
  */
 public function test_addTableToJoin_shouldCheckIfTableCanBeUsedForSegmentation()
 {
     $table = 'log_foo_bar_baz';
     $this->assertFalse($this->tables->hasJoinedTable($table));
     $this->tables->addTableToJoin($table);
     $this->assertTrue($this->tables->hasJoinedTable($table));
 }
All Usage Examples Of Piwik\DataAccess\LogQueryBuilder\JoinTables::addTableToJoin