Piwik\DataAccess\LogQueryBuilder\JoinTables::hasJoinedTable PHP Method

hasJoinedTable() public method

public hasJoinedTable ( $tableName )
    public function hasJoinedTable($tableName)
    {
        return in_array($tableName, $this->getTables());
    }

Usage Example

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::hasJoinedTable